ZLZ PRP Importer

Announcements and discussion regarding any projects related to Cyan Worlds' Plasma Engine including (but not limited to) CyanWorlds.com Engine, Drizzle, OfflineKI, PyPRP, and libHSPlasma.

ZLZ PRP Importer

Postby Sirius » Sun Feb 10, 2019 12:27 pm

Hey guys,

I finally took the time to fix bugs in my PRP importer and make a Wiki entry for it, along with usage instructions. The sources are also available on Gitlab. This should make it easier to find than buried deep into the forum.

I also added in a couple features since the last version. Yay !

A small list of what it can do:
  • run on Blender 2.79, unlike the previous PyPRP importer
  • import colliders, visual meshes, materials (not perfect) and textures
  • deduplicate vertices and create hard/smooth edges for visual meshes (this makes meshes react pretty well to lighting)
  • import lights (Plasma lighting is different from Blender's so will not map 1:1)
(the following features are new:)
  • import every collider type (including convex hull), except cylinder (because it's nearly never used)
  • import a single PRP. The whole Age will still be loaded to avoid breaking references to things like textures and such
  • rig visual meshes and import Plasma bones as armatures
  • import a few animations (still rather broken)

Due to the numerous differences between Plasma and Blender, it's by no means perfect, but should be slightly better than PyPRP. It's also easier to install, since its only requirement is Korman itself.

I won't be adding new features often, but feel free to report any bugs you might encounter. Have fun :P

(and in the mean time, I'll see about doing the last bits of code cleaning to get UPlasma's source available as well, if that interest someone)
User avatar
Sirius
 
Posts: 1508
Joined: Mon Jul 26, 2010 4:46 am
Location: France

Re: ZLZ PRP Importer

Postby Deledrius » Sun Feb 10, 2019 7:44 pm

That's great news! Thanks for the update and the new documentation!
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 1377
Joined: Mon Oct 01, 2007 1:21 pm

Re: ZLZ PRP Importer

Postby Chacal » Sun Feb 10, 2019 10:12 pm

Awesome.
If I can only find some free time to try it.
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Chacal
 
Posts: 2509
Joined: Tue Nov 06, 2007 2:45 pm
Location: Quebec, Canada

Re: ZLZ PRP Importer

Postby Aloys » Wed Feb 13, 2019 6:48 am

Goodie! :) A working importer is always useful.. Thanks for that new release. :)


Chacal wrote:If I can only find some free time to try it.

yeah.. that is a real problem.. :?
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)

Re: ZLZ PRP Importer

Postby Sirius » Wed Feb 13, 2019 9:26 am

That's always the issue, isn't it :) I hope you'll like it once you find time to use it :D It's still not perfect, but I've been using it as starting point for all my handmade Unity ports, and it's rather useful.
User avatar
Sirius
 
Posts: 1508
Joined: Mon Jul 26, 2010 4:46 am
Location: France

Re: ZLZ PRP Importer

Postby Deledrius » Wed Feb 13, 2019 9:13 pm

Sirius wrote:That's always the issue, isn't it :) I hope you'll like it once you find time to use it :D It's still not perfect, but I've been using it as starting point for all my handmade Unity ports, and it's rather useful.

It's quite useful when adding new things to existing Ages. Saves me the trial-and-error of lining things up with guesswork.
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 1377
Joined: Mon Oct 01, 2007 1:21 pm

Re: ZLZ PRP Importer

Postby Zapoteca » Thu Aug 15, 2019 2:20 pm

Just wanted to let you know that I've been having a blast with this tool, it's really cool to see how the game was built

I can't seem to render any scenes, though. I just get a black screen. Any thoughts?
User avatar
Zapoteca
 
Posts: 5
Joined: Thu Aug 15, 2019 2:16 pm
Location: South America

Re: ZLZ PRP Importer

Postby Sirius » Fri Aug 16, 2019 2:19 am

I'm really glad that you're having fun with it :D

It's strange that rendering doesn't work, though. Which Ages are affected by this problem ?
You can try to check the following :
  • Make sure you're using Blender 2.79 with the "Blender Render" engine (cycles will not work).
  • Try to add point lights/ambient light. If you are trying to render an exterior scene with a skybox, try to delete the skybox or disable shadow casting for its material. By default ZLZ attempts to use Blender's lighting instead of Plasma's baked lights, and that sometimes result in the geometry blocking 100% of the light coming from the few light sources available.
  • In the world settings, disable the mist (I doubt that's the issue but you never know)
If that still doesn't solve the issue, try saving the imported Blender file somewhere. Then create a new empty Blender file, and use File→Append to reimport the objects from the other file.

Let me know if that solves the problem ;)
User avatar
Sirius
 
Posts: 1508
Joined: Mon Jul 26, 2010 4:46 am
Location: France

Re: ZLZ PRP Importer

Postby Doobes » Wed Oct 30, 2019 3:52 pm

Sadly, I'm only now just finding out about this wonderful importer. Well done, Sirius! It worked beautifully on my first import (K'veer).

With Cyan recently loosening the rules on modifying their MOUL content (but not giving access to their max files), this should come in very handy in the coming months! :D
KI #s: MOULa - 6302, Minkata - 35287, Gehn - 14291,
TOC - 82340, DI - 44387
Image
User avatar
Doobes
 
Posts: 216
Joined: Thu Aug 07, 2008 6:08 pm
Location: Savannah, GA, USA

Re: ZLZ PRP Importer

Postby Doobes » Sun Nov 03, 2019 6:05 pm

Zapoteca wrote:I can't seem to render any scenes, though. I just get a black screen. Any thoughts?


I found the reason for this as I was working on Cyan's GoMe Pub.. The importer sets almost all the textures to "Multiply". They should be set to "Mix". Is there any way to change this, Sirius?
KI #s: MOULa - 6302, Minkata - 35287, Gehn - 14291,
TOC - 82340, DI - 44387
Image
User avatar
Doobes
 
Posts: 216
Joined: Thu Aug 07, 2008 6:08 pm
Location: Savannah, GA, USA

Next

Return to Plasma Development

Who is online

Users browsing this forum: No registered users and 2 guests