Sie sind nicht angemeldet.

41

Sonntag, 23. Dezember 2018, 15:40

where are you defined y and with what ?
i have created a do_camera_object_hittest based on do_object_hittest when i rollover rollout object !

the objects are a shape with extruding options * by number of hotspots (and replace them) !

its a simple raycast from camera not from mouse :)

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »MrTie« (23. Dezember 2018, 16:04)


42

Mittwoch, 2. Januar 2019, 12:21

Oh my mistake. The value of y worked only by accident because it was defined as some random function.
It is wierd because no matter what numerical value I set it mess up the position, but if you set it to NaN or non-numerical string it works.
I use this now: renderer.setViewport(0, "-", sw,sh); and it works perfectly. However, I don't really understand what black magic is this.

43

Donnerstag, 3. Januar 2019, 08:58

true, with NaN , it's ok !! Thank you ! :)

44

Donnerstag, 10. Januar 2019, 12:16

Thanks for all this information. Really useful *thumbsup*

Ähnliche Themen