Bug? getScreenCoordinatesFrom3DPosition return Y -1000

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
manking
Posts: 2
Joined: Wed May 23, 2012 6:53 pm

Bug? getScreenCoordinatesFrom3DPosition return Y -1000

Post by manking »

Hello.
getScreenCoordinatesFrom3DPosition() always return -1000 but i see the box.
I tried all types of cameras:
addCameraSceneNode()
addCameraSceneNodeMaya()


I post this in bug tree because i see
this message
http://irrlicht.sourceforge.net/forum/v ... =4&t=44544
second message
edit: Hm, forget it - I changed getScreenCoordinatesFrom3DPosition not getRayFromScreenCoordinates :-(

Build in x64. Microsoft Visual 2010.
Irrlicht Engine version 1.7.3
Microsoft Windows 7 Ultimate Edition Service Pack 1 (Build 7601)
WGL_extensions: WGL_ARB_buffer_region WGL_ARB_create_context WGL_ARB_create_cont
ext_profile WGL_ARB_create_context_robustness WGL_ARB_extensions_string WGL_ARB_
make_current_read WGL_ARB_multisample WGL_ARB_pbuffer WGL_ARB_pixel_format WGL_A
RB_pixel_format_float WGL_ARB_render_texture WGL_ATI_pixel_format_float WGL_EXT_
create_context_es2_profile WGL_EXT_extensions_string WGL_EXT_framebuffer_sRGB WG
L_EXT_pixel_format_packed_float WGL_EXT_swap_control WGL_EXT_swap_control_tear W
GL_NVX_DX_interop WGL_NV_DX_interop WGL_NV_DX_interop2 WGL_NV_float_buffer WGL_N
V_multisample_coverage WGL_NV_render_depth_texture WGL_NV_render_texture_rectang
le
Using renderer: OpenGL 3.3.0
GeForce GTX 285/PCIe/SSE2: NVIDIA Corporation
OpenGL driver version is 1.2 or better.
GLSL version: 3.3
manking
Posts: 2
Joined: Wed May 23, 2012 6:53 pm

Re: Bug? getScreenCoordinatesFrom3DPosition return Y -1000

Post by manking »

Sorry.
It works after
driver->beginScene()
But i hoped get all positions and draw text before main while(){}
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Bug? getScreenCoordinatesFrom3DPosition return Y -1000

Post by CuteAlien »

Might needs some updateAbsolutePosition for your nodes and your camera.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply