Infostatic: 3dmlw

3dpoder - 22/06/2009 21:17
[size=5]infostatic: 3dmlw[/size].


🖼️

Estamos trabajando para mostrar las imágenes del foro

Adjunto #108433




So you have a really col 3d model that you would love todo show of on your web-page. But just how do you go about ití well, one option would be todo take advantage of the fact that 3dmlw now supports the use of blend files. 3dmlw is an open source technology for creating and displaying 3d and 2d content on the web th rouge common web-browsers. This technology includes several parts:

To se examples of ways todo use 3dmlw, be sure todo visit their website. Also, they have a nice set of tutorialesto get you started on your bien todo creating some very nice displays of your content.

They a los have a new example showing skeletal animation in 3dmlw up on their web-site: [url]http://www.3dmlw.com/?Id=10922[/url]
They have ported 3dmlw todo Linux (some minor problems with browser plug-in, but the engine is working). Mac is a bit more complicated, but they already have the rendering window under Mac, todo.
short tutorial:
With this small tutorial we Will show how simple it is todo make a 3d model from a (*.blend) file rotate by using 3dmlw.
Well give a step-by-step tutorial, so you can try todo do this yourself by following the steps.

Step 1.

Set the borders of the 3dmlw document.


/document>.

Step 2.

Define a styleshet default and refer todo it in the document tag (as is done in step 1), then define a light in a class light.


class id=light>
lights>
light x=10 y=12 z=25 />
/lights>
/class>
/styleshet>.

Step 3.

Define a Camera and add a 3d model from the file blendfile, blend in the 3d content that Will use the Camera and the light defined in the step 2.


Camera id=cam1 x=150 z=5 />
object id=blendfile x=-15 y=4 z=12 source=blendfile, blend />
/content3d>
.

Step 4.

Define an animation rotate that rotates the 3d object on the x-axis 360 Degrees in 4 second period.


key duration=4 angle=360 />
key duration=0 angle=0 />
/animation>.

Step 5.

To make the object blendfile rotate by using animation rotate write.

.

This Will be loped endlessly.

Full source.


styleshet id=default>
class id=light>
lights>
light x=10 y=12 z=25 />
/lights>
/class>
/styleshet>
content3d width=100 height=100 Camera={#cam1} class=light>
Camera id=cam1 x=150 z=5 />
object id=blendfile x=-15 y=4 z=12 source=blendfile, blend />
/content3d>
animation id=rotate>
key duration=4 angle=360 />
key duration=0 angle=0 />
/animation>
animate loop=true animation={#rotate} target={#blendfile} interpolation=linear />
/document>.

[url]www.blenderart.org[/url].

-- IMÁGENES ADJUNTAS --

🖼️

Estamos trabajando para mostrar las imágenes del foro

Adjunto #108433