Anyone know O3D?!

F41c21a51b0d88733ac86a57d57384a3
0
KingKohle 101 Sep 13, 2010 at 14:50

Hi there,

as Im new to O3D I have troubles to get my app running. For testing-
purposes I converted a single 3D-object (floor, as a point of
reference) into an .o3dtgz-file. What I try to do is to control a
camera (fistperson-movement) to walk trough my app. Therefore I wrote
the basic HTML-code to load the .js- and .o3dtgz-files. The sourcecode
for the camera-motion I downloaded at: >>

http://www.patapom.com/O3D/patapi/camera_firstperson_walk.js <<
(He seems to use an own API called “patapi”. Maybe that causes some
troubles as well?! Very clever guy btw..)

My application shows the floor, so far. But I cant control the camera
because I probably pasted the code to the wrong spot. The URL to my
test-scene you can see here:

>> http://king-kool-kohle.lima-city.de/index.html <<

Feel free to browse and view the sourcecode. Help is needed here\^\^

Questions:

  1. Where to fit in the scribt “camera_firstperson_walk.js” correctly
    (within the HTML-/JS-directory)?

  2. What patapi/js-scribts have to be implemented for this?

  3. What else do I have to provide to run this through? Do I need to
    export a camera from (e.g.) 3ds max? Or does the camera occur within
    the scribt?

As Im a 3D-Artist (no proger, yet) I find it hard to understand all
the tutorials (obviously written for progers only). Im looking forward
for your help.

Cheers

KK

5 Replies

Please log in or register to post a reply.

B7dcbc0c0f07253f25ff5c25fe38c081
0
SamuraiCrow 101 Sep 13, 2010 at 19:32

O3D is deprecated in favor of WebGL. It’s no longer supported by Google. See the O3D Website for more details.

99f6aeec9715bb034bba93ba2a7eb360
0
Nick 102 Sep 14, 2010 at 13:42

@SamuraiCrow

O3D is deprecated in favor of WebGL. It’s no longer supported by Google. See the O3D Website for more details.

It’s not deprecated. The standalone plugin has evolved into a JavaScript API on top of WebGL. Here’s its new home: http://code.google.com/p/o3d/

F41c21a51b0d88733ac86a57d57384a3
0
KingKohle 101 Sep 14, 2010 at 15:51

True.. I knew that. Thanks for the replies anyway. The thing is that I couldnt find a template in WebGL to extract the camera-movement (like the Saint-Jean Cathedral >>http://www.patapom.com/O3D/Cathedral.html)).

So I wanted to do it in O3D first and then convert it to WebGL (as Im not too familar with the JavaScribts/dont know where to paste the scribts).. As it is very similar to WebGL, I suppose I can use the same scribt and put it in WebGL. Still I dont know where exactly, though..

Anyone know where to paste such a scribt in WebGL? Or anyone know a sample like the Cathedral in WebGL, so I can get the first-person-camera-movement?!

Thanks for help

AW

99f6aeec9715bb034bba93ba2a7eb360
0
Nick 102 Sep 15, 2010 at 21:30

@KingKohle

Anyone know where to paste such a scribt in WebGL? Or anyone know a sample like the Cathedral in WebGL, so I can get the first-person-camera-movement?!

I’m sorry but you can’t just cut-and-paste some code and expect a new feature to be added and fully integrated.

I remember when I started writing game mods a decade ago I had the same issue. It’s only after I really learned to program in C/C++ that I understood how the pieces fit together. And even today working with new code can still be pretty daunting.

So my best advice to you is to properly learn JavaScript first. Start with something really basic and take baby steps, instead of immediately attempting to do something extremely complex like a 3D demo. Trust me, it will be well worth it. After you’ve got the hang of all aspects of JavaScript you’ll be able to create some very impressive things. And the 3D web market is promising to be very exciting…

F41c21a51b0d88733ac86a57d57384a3
0
KingKohle 101 Sep 16, 2010 at 10:59

Thanks for your advice Nick.. It would be probably much better to get into it to fully learn JavaScribt. But I have good skills in HTML and Actionscribt. Therefore I understand the structure of WebGL (after weeks of research). The camerascribt.js should be pasted in somewhere quiete easily..

See the scribt: http://patapom.com/O3D/patapi/camera_firstperson_walk.js

With a quick introduction where to paste it, I should get a good picture how to implement it by myself without learning the whole JS-stuff.. Anyway, I try to learn JS from here on. But I think it should work with a very basic knowledge for the thing I try to do here.

So, whenever someone know how to do a first-person-camera-movement in a plain area - please let me know how to do or share a whole scribt (prefered in WebGL)

Thanks heaps\^\^

AW