
QuaziGNRLnose wrote:imothep85 wrote:im trying to replace a 3d sphere in the Q3Dmaster, with a cube model.
i added ajax with the request url to the folder and model but nothing happens, my app is also hosted on the ftp.
Maybe i have done something wrong, but how to change a model in the app by another model present on the ftp?
here its my capx file http://mattepainting.be/test/Gsphere.capx
First of all be certain same-origin-policy is followed.
For that you need to be sure your project is hosted on the same domain as the model (usually). Also the loader uses a URL, so you don't have to use the ajax object to download the file, and the way you're dumping "lastdata" into the URL field can't work.
what you can do instead (and much more easily) is set Model name in the change model action to "http://mattepainting.be/test/models/cube.obj". You could also even set the Model Filename property in the layout editor to http://mattepainting.be/test/models/cube.obj and it'll work properly assuming same-origin-policy is followed (for node webkit it probably doesn't matter, so you could use any url pointing to a valid object).
imothep85 wrote:fantastic, now im testing if i can control rotation of my object with the mouse, zooming on it by clicking on the object is harder :s
QuaziGNRLnose wrote:Angiel wrote:hello
Congratulations for the plugins. I am very interested in purchasing this plugins.![]()
I wanted to know if this plugins I can use some behaviors:
--LineOfSight
--Pathfinding
or certain actions:
--load
--save
or other events and actions that we all normally use in costruct 2 (2d).
thanks
ps sorry for my bad English, I write from Italy.
You can use behaviours but they only work in "2D", so for example line of sight would only work in the X,Y plane Pathfinding would only work in the X,Y plane, and all the models have bounding boxes around them, no other collision shape can be specified. Another way you could do it is to use a sprite if you want custom collision shapes, and set the model position to that of the sprite. In both these ways, yes those behaviors are supported.
Saving and Loading with construct's save/load system is not supported yet.
Who is online |
Users browsing this forum: marmis and 0 guests |