Jump to content


Anyone know O3D?!


5 replies to this topic

#1 KingKohle

    New Member

  • Members
  • Pip
  • 3 posts

Posted 13 September 2010 - 02:50 PM

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.c...tperson_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-koh...y.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

#2 SamuraiCrow

    Senior Member

  • Members
  • PipPipPipPip
  • 459 posts

Posted 13 September 2010 - 07:32 PM

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

#3 Nick

    Senior Member

  • Members
  • PipPipPipPip
  • 1227 posts
  • LocationOttawa, Ontario, Canada

Posted 14 September 2010 - 01:42 PM

SamuraiCrow said:

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/

#4 KingKohle

    New Member

  • Members
  • Pip
  • 3 posts

Posted 14 September 2010 - 03:51 PM

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.c...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

#5 Nick

    Senior Member

  • Members
  • PipPipPipPip
  • 1227 posts
  • LocationOttawa, Ontario, Canada

Posted 15 September 2010 - 09:30 PM

KingKohle said:

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

#6 KingKohle

    New Member

  • Members
  • Pip
  • 3 posts

Posted 16 September 2010 - 10:59 AM

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/O...tperson_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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users