Gracias Gracias:  0
Resultados 1 al 1 de 1

Tema: Infostatic: 3DMLW

  1. #1
    Administrador y fundador. Avatar de 3dpoder
    Fecha de ingreso
    Apr 2002
    Mensajes
    15,459

    Infostatic: 3DMLW

    Infostatic: 3DMLW





    So you have a really cool 3d model that you would love to show off on your web-page. But just how do you go about ití Well, one option would be to 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 through common web-browsers. This technology includes several parts:


    • 3DMLW markup language – This is a clear and standardized specification for creating 3DMLW-documents. 3DMLW is similar to XHTML and easy to understand;
    • Scripting support for dynamic and interactive content;
    • Style sheets for easy and comfortable designing;
    • 3DMLW plug-in for web browsers – this is a browser based plug-in for showing 3DMLW documents in web-browsers;
    • Editor for 3DMLW – standalone editor & 3DMLW-based web-editor for easily creating 3DMLW-documents.


    To see examples of ways to use 3DMLW, be sure to visit their website. Also, they have a nice set of tutorials to get you started on your way to creating some very nice displays of your content.

    They alos have a new example showing skeletal animation in 3DMLW up on their web-site: http://www.3dmlw.com/?id=10922
    They have ported 3DMLW to 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, too.

    Short Tutorial:
    With this small tutorial we will show how simple it is to make a 3D model from a .blend file rotate by using 3DMLW.

    We'll give a step-by-step tutorial, so you can try to do this yourself by following the steps.

    Step 1.

    Set the "borders" of the 3DMLW document:

    <document stylesheet='{#default}'>
    </document>
    Step 2.

    Define a stylesheet default and refer to it in the document tag (as is done in Step 1), then define a light in a class light:

    <stylesheet id='default'>
    <class id='light'>
    <lights>
    <light x='10' y='12' z='25' />
    </lights>
    </class>
    </stylesheet>
    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:

    <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>
    Step 4.

    Define an animation rotate that rotates the 3D object on the x-axis 360 degrees in 4 second period:

    <animation id='rotate'>
    <key duration='4' angle='360' />
    <key duration='0' angle='0' />
    </animation>
    Step 5.

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

    <animate animation='{#rotate}' target='{#blendfile}' speed='1' loop='true' />
    This will be looped endlessly.

    Full source:

    <document stylesheet='{#default}'>
    <stylesheet id='default'>
    <class id='light'>
    <lights>
    <light x='10' y='12' z='25' />
    </lights>
    </class>
    </stylesheet>
    <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>

    www.blenderart.org
    Miniaturas adjuntadas Miniaturas adjuntadas Infostatic: 3DMLW-1.jpg  
    Si vas a subir un trabajo al foro, hazlo adjuntando la imagen, archivo, vídeo o lo que sea, no publicando enlaces de otros sitios. http://www.foro3d.com/f45/forma-correcta-de-insertar-imagenes-y-archivos-en-nuestro-mensaje-98930.html

    |Agradecer cuando alguien te ayuda es de ser agradecido|

Actualmente estos son sus permisos de publicación en el foro.

  • -No puedes crear nuevos temas al no estar registrado o no haber iniciado sesión en el foro.
  • -No puedes responder temas al no estar registrado o no haber iniciado sesión en el foro.
  • -No puedes subir archivos adjuntos al no estar registrado o no haber iniciado sesión en el foro.
  • -No puedes editar tus mensajes al no estar registrado o no haber iniciado sesión en el foro.
  •