[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4505: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4507: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4508: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4509: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
RabidHaMsTeR.Org • View topic - How to create own watermorph files?

How to create own watermorph files?

How to create a custom scene, and custom scenes people have created.

Moderators: rabidhamster, Rovastar

How to create own watermorph files?

Postby tonikov » Mon Sep 11, 2006 12:40 pm

tonikov
 
Posts: 14
Joined: Mon Sep 11, 2006 11:49 am

Postby Rovastar » Mon Sep 11, 2006 3:35 pm

It is not as simple as that.


Have a look at the structure of the watermorph files in the R4/data/watermorph folder.

The watermorph are made up of up to (i think there is a limit) 64 points or blobs.

Each point has a x,y,z location of the "blob" and also teh size of the size to.

The x,y,z points are roughly in the range -1 to 1 in 3D space - although you can go a little outside this range it may have unexpected result depending on what "size" of the waterworphs skins (watermorph variables: size[5]) as defined in a per scene basis.

Each of the up to 64 blob has a size variable average size in most of the pointmorphs is 1 (all the ones initially created had a size of 1 and AFAIK only I have created any other with sizes other than 1) and a small size of say 0.5 might be not be viewable when alone (e.g. not contact to any other watermorph "blobs" ) depending on the overall watermorph size.

I hope that explains a little more about watermorphs. :)
Rovastar
 
Posts: 423
Joined: Mon May 19, 2003 3:15 am
Location: Derby & London, England

Postby tonikov » Mon Sep 11, 2006 5:33 pm

Thank you for your explain, Rovastar.
But how did you made your watermorph's? Just with Notepad? Or did you use the file 'StandardShapes.java' in the same directory?

I suspect, that all objects consist of metaballs. And the x,y,z positions are describing the center of a metaball. Is that right?
tonikov
 
Posts: 14
Joined: Mon Sep 11, 2006 11:49 am

Postby Rovastar » Mon Sep 11, 2006 7:17 pm

Yeah I just made the watermorphs by hand (draw out what I wanted to make on paper :) ) and typed them in in notepad. I didn't use the 'StandardShapes.java'. Although I had a copy of it I didn't realise that was in the distro....

Yeah the x,y,z positions are the centre of the metaballs.

Just experiment really.
Rovastar
 
Posts: 423
Joined: Mon May 19, 2003 3:15 am
Location: Derby & London, England

Postby tonikov » Mon Sep 11, 2006 10:27 pm

Thank you! Your answers were a great help!
tonikov
 
Posts: 14
Joined: Mon Sep 11, 2006 11:49 am


Return to R4 Custom Scenes

Who is online

Users browsing this forum: No registered users and 18 guests

cron