≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
MMORPG with 3D scenes
Posted by:
(you are not logged in)
Enter the missing letter in: "?nternational"
(you are not logged in)
Text:
[quote][b][/b] wrote: Great the new "SphereSceneNode" function. It fit ok with all I need. I added for example a sun using CL3D.BillboardSceneNode plus light using CL3D.LightSceneNode, two planets orbiting around the sun and one moon orbiting around a planet. All the sources and textures are available here : [url]http://dl.free.fr/kufBHIx0I[/url] So, I have some questions to improve the code : [b]Bilboards[/b] I use CL3D.BillboardSceneNode to symbolise the sun and I would like to rotate the Billboard image but the AnimatorRotation class seems work only with 3D objects and not with Billboard. Is there any way to rotate easily the Billboard image? Additionaly can I change the color of a bilboard? [b]Oval function does not draw anything[/b] I used the "draw2DOval" function to display trajectory but when I add the following line nothing is displayed and all the scene desapears! I surely made a mistake but witch? [code] CL3D.renderer.draw2DOval(0, 0, 20, 20, 0xFF00FF, false);[/code] [b]CL3D.AnimatorFlyCircle. How to set differents starts position for planets?[/b] To rotate the planets around the sun and moons around planets I used the AnimatorFlyCircle class. The problem is when the animation starts, all the planets start from the same orbit position around the sun. Is there a property or a variable I can use to set the start planet position when animation begins? [code] planet1.addAnimator(new CL3D.AnimatorFlyCircle(sun1.Pos, -20, new CL3D.Vect3d(0,1,0), 0.0002));[/code] [b]Ambiant light ?[/b] I added a spot light at sun position using the following code. It work well but how to add an ambiant light? Without ambiant light the night face of a planet is totaly dark :( [code] var lightnode = new CL3D.LightSceneNode(); lightnode.Color = CL3D.createColor(1, 1,0,1); scene.getRootSceneNode().addChild(lightnode);[/code] [b]Replace the key handler by another one[/b] And to finish I would like to replace the default key handler to a custom like : Without shift key pressed : -> mousemouve with left click = translation (X,Y) -> mousewheel = zoom in/out (z) And when the shift key is pressed : -> mousemouve with left click = rotation (X,Y) -> mousewheel = rotation (z) How can I make this? Thank you for your help :)[/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