Сообщения, созданные пользователем mariosds
03 марта 2017 20:59
27 февраля 2017 12:55
25 февраля 2017 17:34
I'm attaching the two photos again so you can see the difference. Picture 1 is the normal one from RayTest example. Picture 2 is my example from a new blend file.
What im doing is:
1) Add->Mesh->Plane
2)Add new Material -> Add Texture in Material Created
3) Add picture to the thexture
4)Scale the plane obj to another smaller size.
The result should be a yellow spot like the picture 1 but it returns a square like in picture 2.
Thank you
What im doing is:
1) Add->Mesh->Plane
2)Add new Material -> Add Texture in Material Created
3) Add picture to the thexture
4)Scale the plane obj to another smaller size.
The result should be a yellow spot like the picture 1 but it returns a square like in picture 2.
Thank you
24 февраля 2017 19:43
Hello,
In Ray Test blend file i've realized that there is a mesh->plane obj created with an image named decal as texture. The result is the yellow dot created on mouse click shown in the picture below:
I've tried to do the same thing on a new example but the result is that the plae obj i create remains as a square and not like a dot. Why is that?
In Ray Test blend file i've realized that there is a mesh->plane obj created with an image named decal as texture. The result is the yellow dot created on mouse click shown in the picture below:
I've tried to do the same thing on a new example but the result is that the plae obj i create remains as a square and not like a dot. Why is that?
22 февраля 2017 13:28
20 февраля 2017 15:46
Hello again,
Ray Test code works just fine with object physics on a cube i created inside blender. Then, after i imported my obj i followed your instructions and i enabled material physics but the error occurred.
Here is the link with my blender file, can you take a look and let me know if you find anything strange?
Thank you
Url: link
Ray Test code works just fine with object physics on a cube i created inside blender. Then, after i imported my obj i followed your instructions and i enabled material physics but the error occurred.
Here is the link with my blender file, can you take a look and let me know if you find anything strange?
Thank you
Url: link
19 февраля 2017 02:29
17 февраля 2017 20:35
16 февраля 2017 19:49
Hello again, as i followed your instructions i came up to the follow "problem". I'm attaching two images so i explain the difference:
In the above picture there is a cube added from blender. Using the ray Test example i'm adding some spots on the obj.
In the second picture i'm importing an obj in blender exported from mesh lab. After doing the same procedure with the first example the spots on this obj seems not to be attached to the obj but stay a distance away. Maybe z axis?
Any ideas why this is happening?
Thanks in advance
In the above picture there is a cube added from blender. Using the ray Test example i'm adding some spots on the obj.
In the second picture i'm importing an obj in blender exported from mesh lab. After doing the same procedure with the first example the spots on this obj seems not to be attached to the obj but stay a distance away. Maybe z axis?
Any ideas why this is happening?
Thanks in advance
15 февраля 2017 14:17
Hello there,
On a previous post of mine , https://www.blend4web.com/en/forums/topic/3022/ , i was asking how i could take the real coordinates of a mouse click so i could add a spot on my obj. This happened thanks to Ray Test example!!! After this, i mean after adding some spots-flags on my obj i wanted to "save" them to stay on the object.
So , i thought after on_click on the container take those clientX, ClientY that mouse_cb function needs to run and store them in a database. I made a replica of mouse_cb function waiting for parameters (x,y) and i give those parameters after pulling them from the database. I repeat call mouse_cb for all my spots-flags in the database. This works fine but another problem appears.
The problem is that ClientX, ClientY depends on the client's screen, the current zoom, and the camera's position. So if i run the app from another pc (with different screen dimensions or differnet zoom) the spots appears in different position or not at all.
So, which is the most proper way to achieve that? I hope i explained it well. Ask me for anything you didnt understand.
Thank you
On a previous post of mine , https://www.blend4web.com/en/forums/topic/3022/ , i was asking how i could take the real coordinates of a mouse click so i could add a spot on my obj. This happened thanks to Ray Test example!!! After this, i mean after adding some spots-flags on my obj i wanted to "save" them to stay on the object.
So , i thought after on_click on the container take those clientX, ClientY that mouse_cb function needs to run and store them in a database. I made a replica of mouse_cb function waiting for parameters (x,y) and i give those parameters after pulling them from the database. I repeat call mouse_cb for all my spots-flags in the database. This works fine but another problem appears.
The problem is that ClientX, ClientY depends on the client's screen, the current zoom, and the camera's position. So if i run the app from another pc (with different screen dimensions or differnet zoom) the spots appears in different position or not at all.
So, which is the most proper way to achieve that? I hope i explained it well. Ask me for anything you didnt understand.
Thank you