Search found 15 matches

by 3dsolar
Tue Mar 04, 2008 11:10 am
Forum: Advanced Help
Topic: Lock texture in orthogonal projection fail
Replies: 4
Views: 373

we use DirectX so far
by 3dsolar
Tue Mar 04, 2008 10:02 am
Forum: Advanced Help
Topic: Lock texture in orthogonal projection fail
Replies: 4
Views: 373

core:: matrix4 cam_mat;
cam_mat.buildProjectionMatrixOrthoLH (4000,3000,0,300000);
ICameraSceneNode* camera = _irSmgr-> addCameraSceneNode ();
camera-> setProjectionMatrix (cam_mat);

I display on screen (320x240) little plane and try apply texture

1. if texture load like this:
ITexture* tex ...
by 3dsolar
Mon Mar 03, 2008 7:00 pm
Forum: Advanced Help
Topic: Lock texture in orthogonal projection fail
Replies: 4
Views: 373

Lock texture in orthogonal projection fail

Hi
Do you know why lock() works ok if I'm in perspective projection but fail in orthogonal projection ?

Thanks
by 3dsolar
Fri Feb 29, 2008 5:44 pm
Forum: Advanced Help
Topic: Crash in: cd3d9driver.cpp
Replies: 1
Views: 483

Crash in: cd3d9driver.cpp

Hi,

We run a program that time to time crashes here:

In cd3d9driver.cpp line 741

if (texture && texture->getDriverType() != EDT_DIRECT3D9)

"if (texture && texture->getDriverType() != EDT_DIRECT3D9)
> Irrlicht.dll!irr::video::CD3D9Driver::setTexture(int stage=0, irr::video::ITexture * texture ...
by 3dsolar
Mon Feb 18, 2008 5:12 pm
Forum: Advanced Help
Topic: Lock() Texture bug due to video card limitation to 256*256 ?
Replies: 24
Views: 4846

Yes read and changed we send a video feed to irrlicht to add 3d object to it and read it back.
by 3dsolar
Mon Feb 18, 2008 11:07 am
Forum: Advanced Help
Topic: Lock() Texture bug due to video card limitation to 256*256 ?
Replies: 24
Views: 4846

Why in irrlicht 1.3-1.4 function lock() use only 0 level

Why in irrlicht 1.3-1.4 function lock() use only 0 level (first parametr in LockRect in DirectX mode) this could be the reason why we cant lock a texture of 512*512 with some wideo cards.

//! lock function
void* CD3D9Texture::lock()
{
if (!Texture)
return 0;

HRESULT hr;
D3DLOCKED_RECT rect;
if ...
by 3dsolar
Fri Feb 15, 2008 10:14 am
Forum: Advanced Help
Topic: Lock() Texture bug due to video card limitation to 256*256 ?
Replies: 24
Views: 4846

can we send it to you privately first ? and then post solution to the forum ?
can we exchange by ICQ and email ?
by 3dsolar
Fri Feb 15, 2008 8:41 am
Forum: Advanced Help
Topic: Lock() Texture bug due to video card limitation to 256*256 ?
Replies: 24
Views: 4846

We believe its linked to DirectX level we assume Irrlicht use level 0 in DurectX so we try now on OpenGL but we have another problem our function drawAll() do not work anymore under OpenGL init well but do not render maybe a problem of thread.
by 3dsolar
Tue Feb 12, 2008 4:11 pm
Forum: Advanced Help
Topic: Lock() Texture bug due to video card limitation to 256*256 ?
Replies: 24
Views: 4846

any idea why our texture if 512*512 stay empty ?
by 3dsolar
Mon Feb 11, 2008 7:56 am
Forum: Advanced Help
Topic: Lock() Texture bug due to video card limitation to 256*256 ?
Replies: 24
Views: 4846

When we use a 512*512 textutre then no errors but no result texture stay empty maybe we dont update well pixels, any idea ?
by 3dsolar
Sun Feb 10, 2008 9:33 am
Forum: Advanced Help
Topic: Lock() Texture bug due to video card limitation to 256*256 ?
Replies: 24
Views: 4846

Thanks we will try your way even if we found a turn around by locking 2 textures of 256*256, do you know if the lock() function is also available in Irrlicht with OpenGL ?
by 3dsolar
Thu Feb 07, 2008 9:53 am
Forum: Advanced Help
Topic: Lock() Texture bug due to video card limitation to 256*256 ?
Replies: 24
Views: 4846

prm.DriverType = E_DRIVER_TYPE(4); (DirectX)

ITexture* g_tex = 0; // DL3D: Webcam frame

// Then

// Remove camera frame texture
_irDriver->removeTexture( g_tex );

// Then

// Create webcam frame texture if it doesn't already exists
if( g_tex == 0 )
g_tex = _irDriver->addTexture( dimension2d ...
by 3dsolar
Thu Feb 07, 2008 9:43 am
Forum: Advanced Help
Topic: Lock() Texture bug due to video card limitation to 256*256 ?
Replies: 24
Views: 4846

we are in D3D Directx9
by 3dsolar
Thu Feb 07, 2008 8:32 am
Forum: Advanced Help
Topic: Lock() Texture bug due to video card limitation to 256*256 ?
Replies: 24
Views: 4846

Works on ATI radeon 9000 and Geforce 6600 GT but fail on : GForce 4 7600, ATI radeon X2300, ATI Mobility Radeon x2300
So the only turn around so far we found its to lock two textures of 256*256 and merge them togehter.

Patrick
by 3dsolar
Wed Feb 06, 2008 3:28 pm
Forum: Advanced Help
Topic: Lock() Texture bug due to video card limitation to 256*256 ?
Replies: 24
Views: 4846

Lock() Texture bug due to video card limitation to 256*256 ?

Hello,
Lock a texture in memory can be a nice feature but we found a limitation, many video card limit the lock() function to 256*256 texture size, do you know a turnaround to this problem as we need to lock a 512*512 (320*240) texture size!
Thanks