this time not my engine but my model and texture (63072 triangles)
http://www.renderhjs.net/bbs/flashkit/sophie3d/
(screenshots from the flash engine)
http://www.sophie3d.com/website/index_en.php
Sophie 3D Engine enables you to supply fast renders at a high quality.
Sophie 3D can antialias render in realtime over 50.000 polygons with texture maps, reflection maps, transparent materials, an infinite number of lights and shadow planes.
though even I have to say that this text is very unclear and sounds more like a marketing construct.
From how I see it:
- can display huge poly- chunks
- smoothing groups
- phong shading
- transparency materials
- reads OBJ and MAT (material) files
- smal file size, yet bloaty OBJ files to load
- OBJ can be compressed with a custom binary format (saves sometimes up to 70% [says the text on the website] )
- yet very tricky to get your model running the way you want
its still a bit tricky to get your models out of 3dsmax for example as the OBJ material files are a bit messy from 3dsmax (I could not get difuse bitmaps in the material definition)- but if you copy paste from the provided exmples it should be working.
to get started
- install / get Flash player 10 (needed for converting to zObj format)
- download the flash movie and examples@
http://www.sophie3d.com/website/index_en.php?page=5e221r9v
- export your object as OBJ with triangles, UV map, 6 digits, material definitions so that in the end you have a OBJ and MAT file.
note that the author expects you to work in meters (whatever that means from application to application) - if you set your units to generic it means that you have to use tiny tiny objects (0.15 scale or so). Test things out- its sad but it really want to see tiny values in the coorinates.
for example in my OBJ file some of the vertex coordinates read as
[php]v -0.034611 1.438375 0.574778
v -0.044666 1.396449 0.551706
v -0.034116 1.390862 0.555080
v -0.046789 1.367191 0.554652[/php]
so the object should be fairly smal
- edit the HTML file
in the part..
[php]
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', '
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '500',
'height', '700',
'src', 'Sophie3D_Player',
'quality', 'high',
'pluginspage', '
http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'false',
'loop', 'false',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Sophie3D_Player',
'bgcolor', '#41382e',
'name', 'Sophie3D_Player',
'menu', 'true',
'allowFullScreen', 'true',
'allowScriptAccess','sameDomain',
'movie', 'Sophie3D_Player',
'salign', '',
// Define The Sophie 3D Player vars here ( the url, the scale and the background color )
'FlashVars','sceneUrl=fisher/fisher.obj&sceneScale=0.5&backgroundColor=0x41382e&antialiasingMode=0'
);
}
[/php]
where it says
[php],'sceneUrl=fisher/fisher.obj&sceneScale=0.5&backgroundColor=0x41382e&antialiasingMode=0'[/php] change the scene to your folder/OBJ file
(material should be in the same folder)
and if you are lucky it should work somehow.
Replies
- wire/normal
- anti-/aliasing
- cycle top/front/left
imo. what the developer should focus on are tools to simplify and automate the export the model and the material. A inspector for the materials (with preview) would also be nice or a preset tool that lets you select various materials and lets you configure them e.g difuse map, reflection map, shading settings,...
Well it seems to be a early development anyway so more hopefully to come
well it sorta works for me but im probably exporting something wrong
http://racer445.com/3d_test/sofa_1.html
Well its still a early public release so there is a good chance that it will be soon fixed for cinema.
Glad you are interested in our 3D flash player - and sorry to hear that some of you are having problems with Cinema4D.
We tested the program out on Rhino v4 and released an update for 3DsMax after some constructive comments from renderhjs. We haven't tried Cinema4D but it does not export to OBJ in a way that can be read well by Sophie3D. There are some 3rd party plug-ins for C4D that - should - resolve this export to OBJ problem see: http://skinprops.com/riptide.php
We look forward to you questions and successes - happy publishing
Ive been trying to get this to work and I have done basically using dreamweaver, only think is, Im using max and cannot get the god damn diffuse to come out. Every time I export its just grey. I bring the mtl file I exported back into max and its grey. Can you elaborate on what you mean by copy paste from the example? I brought the example mtl file into max and pasted my diffuse in place of the the sofa_1 diff map, but them im stuck with the same crappy grey export...
Any help would be really great!
Microneezia - We have been trying out the Max2Obj exporter in Max and hope to put up a tutorial on it soon but in the meantime we hope this helps you.
In Max, in the OBJ exporter make sure you select "Object/Use materials/Create material library". This will open the second window and select "Scene materials/Export maps" This should create both the OBJ and MTL files. The MTL file will have a list of the objects and the defined material for that object. For example in the "sofa_1" example dowloaded with Sophie3D in the file's model folder there is the file Sofa_1.mtl . Open that file in a text editor and in the second paragraph you can see:
newmtl tessuto
Ka 0.0000 0.0000 0.0000
Kd 0.9373 0.9373 0.9373
Ks 1.0000 1.0000 1.0000
Tf 0.0000 0.0000 0.0000
d 1.0000
Ns 0
map_Kd texture.jpg
After "map_Kd" is the name of the file used in the 3D program, in this case the image "texture.jpg". You can find the image "texture.jpg" in the same folder as the OBJ and MTL files.
N.B.
- if you rename or put the image file in a different folder you will not see your model (You can see if the model is there by right clicking in your web browser and selecting "Wireframe")
- You can change the displayed texture by putting a new image in the model file and giving it the name of the original texture (in this case "texture.jpg")
I actually tried using the C4D riptide plugin with sophie3D as I always find riptide more reliable for obj exports from c4d. It always just came up with a blank screen so I just assumed its not loading the model.
Have you checked by viewing your model in wireframe in the web browser? The most frequent problems are with scaling the model and textures. By switching to wireframe (and maybe zooming out) you can often see what needs to be done.
Vrav - Thanks for the compliments.
Regarding polygons: its a 1x subdevision (ala turbo smooth in 3dsmax),- for movie shots we used 2x subdevisions.
Will post another test as soon as I find some spare time