Updated VRML exporter

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

ElBarto
Posts: 0
Joined: Fri Jun 11, 2004 3:24 pm
Location: Berlin
Contact:

Updated VRML exporter

Post by ElBarto » Wed Mar 09, 2005 2:10 pm

...starting developing next version of the VRML Exporter for Blender.

What i have done so far:
- correct naming of the standard in "VRML97" instead of "VRML 2.0"
- cleaning up the script of to much comments and developer infos
- fixed various rounding bugs (intensity, creaseAngle etc.)
- on export dialog correct hanging on of extension for the file (.wrl)
if python installed and added asking about overwriting existing files
(when python is installed)
- correct export of the camera information - now supports fieldofview
(lens in Blender) depending of the aspect ratio given through the
render image size X and Y
- support for exporting textures and colors for Background node
using informations of Blenders world object
- after we got a full funtional text editor support for exporting any
hand written code of the text editor
if the text is named "vrml" to the end of the exported file
- support for placing VRML objects into the scene using empties and give
them a name of a valid VRML node
- support for exporting Fog node using setting of Blenders world object
- better emissive color support using material emit and ambient color of
Blenders world object
- added support for inline nodes via different scenes in the blend file

I started writing help pages too. What i'd like too add to this reöease too is:
- real creaseAngle support
- FaceModes collision, billboard, halo as nodes Collision and Billboard

If someone will test the new vrml script:
http://www.neeneenee.de/blender/x3d/vrm ... 150.py.txt
Karamba!
Bart.

http://www.area42.de/

Blender Feature Proposal:
http://www.neeneenee.de/blender/features/

ElBarto
Posts: 0
Joined: Fri Jun 11, 2004 3:24 pm
Location: Berlin
Contact:

Post by ElBarto » Fri Mar 11, 2005 10:58 pm

Updated again:
- added real creaseAngle support depending on setsolid or setsmooth and on autosmooth degrees
- added writing of transform nodes for better exchange of files with 3dsMax
- fine adjustment of lights and added real support for ambientIntensity for lights
- now color of lights will be exported too
- tweaking/ optimizing colors and lights
- export of NavigationInfo node with visibilityLimit and headlight support

Grab it here:
http://www.neeneenee.de/blender/x3d/vrm ... 150.py.txt
Karamba!
Bart.

http://www.area42.de/

Blender Feature Proposal:
http://www.neeneenee.de/blender/features/

halibut
Posts: 0
Joined: Fri Apr 25, 2003 2:02 pm
Contact:

Post by halibut » Sat Mar 12, 2005 3:37 am

Nice! Is this an updated version of a script originally made by AerobicsBoy? Not sure what other name he would go by now!

ElBarto
Posts: 0
Joined: Fri Jun 11, 2004 3:24 pm
Location: Berlin
Contact:

Post by ElBarto » Sat Mar 12, 2005 8:55 pm

No it is an updated of the exporter bundeled with Blender. Now I#m on adding support for Billboard Node and Collision Node by using Blenders FaceModes Halo, Billboard and Collision.
Karamba!
Bart.

http://www.area42.de/

Blender Feature Proposal:
http://www.neeneenee.de/blender/features/

ElBarto
Posts: 0
Joined: Fri Jun 11, 2004 3:24 pm
Location: Berlin
Contact:

Post by ElBarto » Sun Mar 13, 2005 1:28 pm

Updated again, see changes here:
http://www.neeneenee.de/blender/x3d/changes.txt ,

Download again here:
http://www.neeneenee.de/blender/x3d/vrm ... 150.py.txt

Please, post any problem you got on this thread!

THANX!
Karamba!
Bart.

http://www.area42.de/

Blender Feature Proposal:
http://www.neeneenee.de/blender/features/

ElBarto
Posts: 0
Joined: Fri Jun 11, 2004 3:24 pm
Location: Berlin
Contact:

Post by ElBarto » Fri Mar 18, 2005 4:42 pm

Ok,

checked two sided and it worked well. Added transaltion option to the transform so position of the mesh is not depending on Verteices.

Now will do that into a x3d exporter and writing help pages.

Aims for the next version are:
- support for video texture if the image textur has the extension mov, ram, qt, avi, divx, mpg, mpg4 etc.
- Multitexture for X3D
- TextureTransform using face modes Tile and the repeat option on textures
- export of animationen using keys of the IPO
- DEF and USE for meshes
- creating group nodes using make parent

http://www.neeneenee.de/blender/x3d/vrm ... 150.py.txt
Karamba!
Bart.

http://www.area42.de/

Blender Feature Proposal:
http://www.neeneenee.de/blender/features/

metaphorz
Posts: 21
Joined: Sun Nov 10, 2002 3:20 am

problems

Post by metaphorz » Sat Mar 19, 2005 4:28 am

Here is some feedback. First, thanks for taking the
time to update this script. It is a good one! The
script failed on the following two worlds. Download
them from

http://www.cise.ufl.edu/~fishwick/blender/vrml

Both of these were developed by others, but I happen
to have them handy, and they were not simple
scenes. I'll be glad to re-test when you get another
version.

ElBarto
Posts: 0
Joined: Fri Jun 11, 2004 3:24 pm
Location: Berlin
Contact:

Post by ElBarto » Sat Mar 19, 2005 1:28 pm

Thanx for it, your scenes helping me finding 6 bugs. I uploaded a new version to the web:
http://www.neeneenee.de/blender/x3d/vrm ... 150.py.txt

First chapter of help is ready too:
http://www.neeneenee.de/blender/x3d/exp ... web3d.html

THX!
Karamba!
Bart.

http://www.area42.de/

Blender Feature Proposal:
http://www.neeneenee.de/blender/features/

metaphorz
Posts: 21
Joined: Sun Nov 10, 2002 3:20 am

camera orientation

Post by metaphorz » Sat Mar 19, 2005 3:46 pm

Nice work -- seems to have solved the key issues! here is
something else I noticed. Create a new Blender scene with
a single cube mesh in it. Your export correctly matches
the Blender camera. Now, take the Blender camera and rotate
it a little around its axis. The exported VRML doesn't look the
same. Perhaps the mapping to the VRML viewpoint orientation
is not identical? I can give you a .blend file, but for this one,
I think just trying this should duplicate the problem.

ElBarto
Posts: 0
Joined: Fri Jun 11, 2004 3:24 pm
Location: Berlin
Contact:

Post by ElBarto » Sat Mar 19, 2005 4:50 pm

thanx again, will check it.
Karamba!
Bart.

http://www.area42.de/

Blender Feature Proposal:
http://www.neeneenee.de/blender/features/

ElBarto
Posts: 0
Joined: Fri Jun 11, 2004 3:24 pm
Location: Berlin
Contact:

Post by ElBarto » Mon Mar 21, 2005 9:32 pm

New version uploaded:
http://www.neeneenee.de/blender/x3d/vrm ... 150.py.txt

Added support for TextureTransform and exporting just material settings and twosided too:
http://www.neeneenee.de/blender/x3d/changes.txt

See first chapter of help:
http://www.neeneenee.de/blender/x3d/exp ... web3d.html

...and some bugfixes too :)
Karamba!
Bart.

http://www.area42.de/

Blender Feature Proposal:
http://www.neeneenee.de/blender/features/

ElBarto
Posts: 0
Joined: Fri Jun 11, 2004 3:24 pm
Location: Berlin
Contact:

Post by ElBarto » Tue Mar 22, 2005 11:11 pm

Uploaded even now a new version and think this is RC3 and after that comes final:
http://www.neeneenee.de/blender/x3d/vrm ... 150.py.txt
Karamba!
Bart.

http://www.area42.de/

Blender Feature Proposal:
http://www.neeneenee.de/blender/features/

ElBarto
Posts: 0
Joined: Fri Jun 11, 2004 3:24 pm
Location: Berlin
Contact:

Post by ElBarto » Tue Mar 29, 2005 10:51 pm

Karamba!
Bart.

http://www.area42.de/

Blender Feature Proposal:
http://www.neeneenee.de/blender/features/

ElBarto
Posts: 0
Joined: Fri Jun 11, 2004 3:24 pm
Location: Berlin
Contact:

Post by ElBarto » Mon Apr 04, 2005 10:56 pm

Just another update, found a bug using world textures as textures in the background node.

Checked out that exporting vertex color worked bad.
So will change that and after that it seems really final now.

Version 050403:
http://www.neeneenee.de/blender/x3d/vrm ... 150.py.txt

Some help:
http://www.neeneenee.de/blender/x3d/exp ... web3d.html
Karamba!
Bart.

http://www.area42.de/

Blender Feature Proposal:
http://www.neeneenee.de/blender/features/

ElBarto
Posts: 0
Joined: Fri Jun 11, 2004 3:24 pm
Location: Berlin
Contact:

Post by ElBarto » Fri Apr 08, 2005 1:30 am

Karamba!
Bart.

http://www.area42.de/

Blender Feature Proposal:
http://www.neeneenee.de/blender/features/

Post Reply