≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
OBJ loader
Posted by:
(you are not logged in)
Enter the missing letter in: "Internationa?"
(you are not logged in)
Text:
[quote][b]warner[/b] wrote: Link to an OBJ loader, have not tested it extensively. It loads only the vertices/face/normal data, not anything else, such as materials and hierarchy. Don't load too big objects. Again, most of it is based on CopperLicht code, so the same license applies to it. Link: [url]http://pastebin.com/cb74GGQW[/url] Example: [code] var duck = new ObjLoaderNode(); duck.load(engine, "ducky.obj", 0.05); //filename + scale scene.getRootSceneNode().addChild(duck); [/code] EDIT: One remark: Since the loader doesn't stop the execution of the rest of the program, I had difficulty implementing collisions for the object. To resolve this issue, I had to add the TriangleSelector after the mesh was loaded. Before loading the mesh, create a MetaSelector and apply it to the camera. Then, in the pastebin code, at line 113, create a TriangleSelector and add that to the allready existing MetaSelector.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact