PDA

View Full Version : 3d object viewer for android?



zardoz
06-19-2012, 12:36 PM
anyone knows of a 3d application for viewing 3d objects? I installed this:
https://play.google.com/store/apps/details?id=net.mcmiracom.modelviewer&feature=search_result#?t=W251bGwsMSwxLDEsIm5ldC5tY 21pcmFjb20ubW9kZWx2aWV3ZXIiXQ..

it's nice but it has a polygon limit of 65.000 tris. The number is allright but the tris limitation not so good. And if you export an obj from lw it says it can't use lights because it lacks normals.
and it doesn't use the accelerometer...that would be really cool.

OnlineRender
06-19-2012, 01:37 PM
unity ... just import your model then export the android app , remember the device will only handle so many polyz without lagging

zardoz
06-20-2012, 05:59 AM
Hi OnlineRender. I tried unity (for about two hours) and I manage to import my model and export it to android (actually I wasted more time installing the android sdk and searching the web on how unity could find it etc)...so I can see my model but I can't do anything.
What I wanted was a 3d viewer where I can rotate/zoom/pan with the fingers and also some button to change to accelerometer (this way tilting the phone would rotate the model giving a parallax feeling). Is this hard to do? are there scripts that I can use or do I have to code (ahah my programming skills are pathetic)

geo_n
06-20-2012, 06:52 AM
I haven't tried this format for a long time but it looks like android can support it via webgl
http://www.x3dom.org/
There should be a native exporter in lw to do this.

Behold the teapot
http://x3dom.org/x3dom/example/x3dom_objectAndText.xhtml

I'll try on my android phone.

geo_n
06-20-2012, 06:53 AM
double post

OnlineRender
06-20-2012, 12:12 PM
Hi OnlineRender. I tried unity (for about two hours) and I manage to import my model and export it to android (actually I wasted more time installing the android sdk and searching the web on how unity could find it etc)...so I can see my model but I can't do anything.
What I wanted was a 3d viewer where I can rotate/zoom/pan with the fingers and also some button to change to accelerometer (this way tilting the phone would rotate the model giving a parallax feeling). Is this hard to do? are there scripts that I can use or do I have to code (ahah my programming skills are pathetic)

you don't need programming skills as such for unity although it helps ... the SDK can be a pain , especially when you need to go into control panel and write the rule JAVA_HOME ???

however when you load up unity import STANDARD MOBILE ASSETS and drop the first person prefab then replace the "REPLACE CHARACTER WITH " or something along they lines , make sure you download Unity Remote set your phone to debugging mode and hock it up with the usb , this way you can test it without exporting to android everytime ...

lightwiki will have WEBGL soon with model upload , the codes there but we are doing what all the other sites are not which is blocking the ability for users to rip the models ...which atm is causing headaches

geo_n
06-21-2012, 02:31 AM
After digging some more I found out blender can export x3d files natively.
So workflow is lw>blender>x3d.
Supports multiple uvs and texture. Only problem is getting a smooth surface without having to up the polycount to much.
Worked on my android phone using opera. Doesn't work on my iphone safari or opera.
http://web3d.site90.net/alseides/alseides.html
my old model 25k frozen poly still looks faceted.

archijam
06-21-2012, 04:11 AM
geo:

Here seems to be a good example of how to get that smoothing working ...

https://savage.nps.edu/X3D-Edit/BlenderExportToX3d.html

(don't know why it's an https page, my browser gives warnings ...)

geo_n
06-21-2012, 04:50 AM
Ah that could be it thanks
set creaseAngle="3.14159"
I will try again when I have time. Pretty cool to my model on the android phone in 3d.

Sensei
06-21-2012, 05:46 AM
And if you export an obj from lw it says it can't use lights because it lacks normals.

Open OBJ in text editor and see whether there are rows starting with "vn"..