I've been experimenting with Papervision3D in order to make a 3D version of our campus map. On of our artists has worked up an extremely detailed map in Google Sketchup. I've rebuilt the model in Sketchup using texture maps so that its around 1000 triangles and is to scale in Google Earth. Sketchup allows exporting to Collada files (which it uses in it's own files for Google Earth) and Papervision will parse Collada. Here's the result:
I have not finished texturing the entire model, so there are some plain yellow walls.
UPDATE: I've also added a driving mode!
incredible! I’ve been trying to do something similar but finding it difficult. Can u send me a tutorial or guideline as to how to achieve something similar? PLEASE!
very cool! do you plan to make step-by-step tutorial to make the map?
Hi! the result is incredible! i have a question about your rotate navigation: are you rotating the camera or is the group of objects what you move? i’ve tried to get an orbit around an object using camera but the result is not optimal. Please, can you post any code used about this?
Thanks in advance!
@Jorge, I made a little class to rotate the camera around an object using spherical coordinates. I posted it to the PV3D list, so if search for my name (John Dyer) on the list, you should find it.
Hi John! Thanks for answer! i’ve tried to use your class with no success… My scene dissapears when i try to call goToAngle method (no errors from Flashdevelop)
Could you public your campus demo code to understand how to implement MouseOrbiter class? I’m sure that it must be a stupid detail i’ve forgot…
Another question 😉 how is possible FlashPlayer (from Flashdevelop, local) runs a movie at 50fps while same movie runs at 20fps under Firefox or IExplorer? Do you know anything about? It’s frustrating…
Thanks a lot John and sorry for my desesperating english heheheeh
ok now it works! thank you very much John and good luck! see you!
Hey John,
I am playing around with models from scketchup, however I am having problems with displaying them.
Are you using any bitmaps, or textures with your model that you are using?
Did you have to cut anything out of the Collada export from Google’s Scketch up to make this model run more real-a-listicly.
How much did you blow the model up in the flash Player.
@Joe, you might try using the new Sketchup tools in Papervision 2.0 which can read a native Sketchup file without the need to export to DAE. In the final production map, I actually took out the textures and only used a ground texture in order to maximize the speed. see http://www.dts.edu/campusmap
Regarding size, I built my model by importing the ground from Google Earth, so I was building a scale model that could be imported back into Google Earth from Sketchup. This meant my DAE had very large dimensions and I had to move the camera way back to see it. Hope that helps!
I am playing with these classes, however I am having trouble getting the models to be added to the stage.
Do you know of anything extra that I need to do aside from load the model and add it to scene3D?