I made a point an click interface. I used a plane that has a texture mapped onto it. On this texture there are several images, above each image I have a smaller plane which are parented to the textured plane. It works by putting cursor over image and clicking. Here is my problem. The objects are too big. If I scale the plane that is over image, it works but still too big,I can’t scale plane too small. Normally I would just scale an empty but I can’t use a mouse cursor for an empty. Hope I did not confuse with my question. I never made an interface before.
Check you’re in Perspective Mode. There is a bug in camera.getScreenRay() in orthographic mode - and this bug may (?) also be present in the mouse over sensor.
An image of your setup would be good to help diagnose the problem.
How can I scale my objects without changing the physics? If I scale empties everything works fine but I am using a plane. Can I use an empty to point and click?
I know my description is confusing so I included a pic. Normally I would use an empty in the scene. If my object was too not the size I wanted I would scale the empty, problem solved. Look at the image. When I try the interface the object is like 5o times larger than I want, if I scale the plane in the red circle (I made planes visible) it helps but I can’t scale that much. I appended the interface to test it to my project. Any thoughts? This is something I really don’t need but thought it would add a nice touch.
First. in the physics panel set collision type to static and collision bounds to ‘triangle mesh’…I would not recommend this with a high poly count, but this is absolutely fine based on your image…
Second, scale each plane to the desired size and outside of edit mode press ‘ctrl+a’ > and select ‘scale’…do this for each plane…
Lastly, report back and let us know how it goes or if you have any other issues.
EDIT: @Cotaks: we posted at the same time :)…well you were first I guess
I guess I am not explaining myself very well. I want the image the same size more or less and those planes big enough to cover the images below the planes. The problem, when i click on the plane the object is HUGE, I want it smaller object but I don’t want to scale the object because it messes the the physics of my object in the scene.
I found the problem, it happens when I parent the small plane to the larger image plane. When I clear the parent it works normally. Thanks for your replies
So if this is your problem, apply scale to the objects with ctrl+a that wil set the scale ratio back to 1 for the selected object.
EDIT: @Cotaks: we posted at the same time …well you were first I guess
hehe, i noticed when i posted my message yours was directly visible below me, so we should have pressed the submit button at a second or less of each other. Don’t see that happen to often haha
Since I have it working wanted to ask one more question on this. I am setting it up so by pressing a key my interface will appear at top of screen. I wanted to know if when I click on the object image at top of screen can I make it so my object will enter scene where i want it to, like at the center of scene.