Search found 38 matches

by lvgeng
Fri Jun 09, 2017 7:27 am
Forum: Advanced Help
Topic: addshadowvolumescenenode and stencil buffer conflicts.
Replies: 0
Views: 1236

addshadowvolumescenenode and stencil buffer conflicts.

In my project I use stencil buffer to mask the entire rendering zone, as follow,   IAnimatedMeshSceneNode* meshOneModel = sceneManager->addAnimatedMeshSceneNode(mesh); meshOneModel->setMaterialFlag(EMF_LIGHTING, true); meshOneModel->addShadowVolumeSceneNode(); meshOneModel->setMaterialFlag(EMF_NORMA...
by lvgeng
Wed Mar 23, 2016 2:54 pm
Forum: Advanced Help
Topic: Render to target and save to files with high resolution.
Replies: 4
Views: 1451

Re: Render to target and save to files with high resolution.

Hi I am back with some interesting result. I tried several parameters. 10999*10999 still works fine. But 11000*11000 won't. The result came from a fedora machine with titan x. Not so sure why, but I decide to test on windows too. During the lock a texture is rendered to FBO, so 19200x10800 is too bi...
by lvgeng
Tue Mar 22, 2016 9:14 pm
Forum: Beginners Help
Topic: Compiling issue with Fedora 23 and TITAN X.
Replies: 1
Views: 461

Re: Compiling issue with Fedora 23 and TITAN X.

Problem solved...
by:

dnf install xorg-x11-drv-nvidia-devel.x86_64
by lvgeng
Tue Mar 22, 2016 8:42 pm
Forum: Beginners Help
Topic: Compiling issue with Fedora 23 and TITAN X.
Replies: 1
Views: 461

Compiling issue with Fedora 23 and TITAN X.

Hi there... this time I am pretty sure it is a beginner problem... I installed Fedora and followed this http://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/ to update my driver to NVIDIA driver. I used gcc 5.3. But while I am trying to compile the examples, I ran into some problem: Makefi...
by lvgeng
Thu Mar 17, 2016 11:24 pm
Forum: Advanced Help
Topic: Render to target and save to files with high resolution.
Replies: 4
Views: 1451

Render to target and save to files with high resolution.

Hi there I am here again. Recently I was trying to render high resolution version of the scene and save them to files. I was using trunk. Here is how I define the render target.     video::IRenderTarget* renderTargetAllSubimages = 0;     video::ITexture* renderTargetTex = 0;     scene::ICameraSceneN...
by lvgeng
Sat Feb 20, 2016 5:01 pm
Forum: Advanced Help
Topic: Resolution limits of the screenshots.
Replies: 21
Views: 3273

Re: Resolution limits of the screenshots.

I fixed this issue in trunk, but please remember that ITexture::lock doesn't work for some color formats, so this method may return NULL. Recompiled with the new version. It works fine now! Thank you very much!! :D :D Some format? Em... I will keep that in mind and if I find something I will inform...
by lvgeng
Thu Feb 18, 2016 4:43 pm
Forum: Advanced Help
Topic: CreateImage doesn't work, createScreenshot is OK (trunk)
Replies: 5
Views: 1220

Re: CreateImage doesn't work, createScreenshot is OK (trunk)

Foaly wrote:I thought you have to use lock like this: lock(ETLM_READ_ONLY)
But I guess it should work even though.

Are you sure it crashes in createImage? Run it in a debugger to find out where it crashes exactly.
Pretty sure.
And it turned out to be a problem in trunk... they are fixing it.
by lvgeng
Thu Feb 18, 2016 12:47 pm
Forum: Advanced Help
Topic: Resolution limits of the screenshots.
Replies: 21
Views: 3273

Re: Resolution limits of the screenshots.

Nadro wrote:Support for dedicated stencil formats (at now only packed depth-stencil format is available) may be good, however before that we need to add stencil operations support for SMaterial.
Great!

Looking forward to see it in the new version!
by lvgeng
Wed Feb 17, 2016 9:18 pm
Forum: Advanced Help
Topic: Resolution limits of the screenshots.
Replies: 21
Views: 3273

Re: Resolution limits of the screenshots.

Sorry, It's my fault, however I should fix that until the weekend :) Great! I am looking forward to the new version! PS: Like I asked before... do you guys have a plan to provide 16 bit stencil buffer option? It appears to be quite useful in some situation... I think 16 bit depth buffer is enough i...
by lvgeng
Wed Feb 17, 2016 5:28 pm
Forum: Advanced Help
Topic: Resolution limits of the screenshots.
Replies: 21
Views: 3273

Re: Resolution limits of the screenshots.

Oh my, our fault :-(. There is something checked into trunk right now which breaks texture-locking for rendertarget textures. Unfortunately nothing I can fix quickly, I'll inform Nadro to make this the top priority. Right now the only way around it I see is going back to older Irrlicht versions. I ...
by lvgeng
Wed Feb 17, 2016 4:06 pm
Forum: Advanced Help
Topic: Resolution limits of the screenshots.
Replies: 21
Views: 3273

Re: Resolution limits of the screenshots.

It looks like texture->lock() returns 0. What kind of texture do you pass to savetex? The texture for the rendertarget. After   video::IRenderTarget* simulatorRenderTarget = 0;   video::ITexture* renderTargetTex = 0;   scene::ICameraSceneNode* fixedCam = 0;   renderTargetTex = videoDriver->addRende...
by lvgeng
Wed Feb 17, 2016 3:33 pm
Forum: Advanced Help
Topic: Resolution limits of the screenshots.
Replies: 21
Views: 3273

Re: Resolution limits of the screenshots.

When you have a crash like a segmentation fault then you can get a callstack telling you where it crashed. Just use any debugger for that (most IDE's have one included and will show it automatically unless you have the callstack-window hidden). That way you know the exact line where it crashed and ...
by lvgeng
Wed Feb 17, 2016 3:04 pm
Forum: Advanced Help
Topic: CreateImage doesn't work, createScreenshot is OK (trunk)
Replies: 5
Views: 1220

Re: CreateImage doesn't work, createScreenshot is OK (trunk)

Foaly wrote:Oh, sorry, I had assumed lock() without parameter is for write only, but I guess that's not true.
Sorry but I am a little bit confused... what is exactly you suggested?
And to be honest I haven't found a tutorial for saving files yet...
by lvgeng
Wed Feb 17, 2016 2:58 pm
Forum: Advanced Help
Topic: Resolution limits of the screenshots.
Replies: 21
Views: 3273

Re: Resolution limits of the screenshots.

CuteAlien wrote:What's the callstack?
Sorry I am a little bit confused. What did you mean...?
by lvgeng
Tue Feb 16, 2016 4:03 pm
Forum: Advanced Help
Topic: CreateImage doesn't work, createScreenshot is OK (trunk)
Replies: 5
Views: 1220

CreateImage doesn't work, createScreenshot is OK (trunk)

First of all, I am using trunk version. A little bit strange that the function createScreenshot works fine, but the CreateImage or CreateImageFromFata will all leads to same error. (It is hard to say it is an error, the program just crashed) I tried a lot of times and now I am pretty sure that the p...