Problem exporting an image

Hi,

I have some problems when I try to create an image (jpg) in OCC 6.5.1. The image is always created, but when the width / heigth specified are quite high, the image is extended on the top / right with a black area. It seems like the buffer is limited and the program adds a black area to complete the requested width / heigth. If the values are not too high, then the image is created properly.

I'm using the following graphic card, not the Geforce requested by OCC.

Renderer: Intel(R) HD Graphics
Vendor: Intel
Memory: 1024 MB
Version: 2.1.0 - Build 6.14.10.5355
Shading language version: 1.20 - Intel Build 6.14.10.5355

The OpenGL version is 2.1

Can someone check if this can be reproduced ?

pload ALL
vinit
box b 40 40 40 10 10 10
psphere s 20
vdisplay s b
vfit
vdump c:/3.jpg depth 5000 5000 'Wrong
vdump c:/3.jpg depth 1500 1500 'OK

Regards,

Attachments: 
Pawel's picture

Hi Carlos,

no problem on my machine.

NVIDIA Quadro FX 1700
driver version 6.14.12.6717 from 17.02.2011

Pawel

Attachments: 
jelle's picture

> NVIDIA Quadro FX 1700
Pawel you show off ;)

Pawel's picture

In the evening I'll test it on an intel onboard card ... at home :(

;)

Pawel's picture

I've checked on a Mobile Intel 965 card but with OCC 6.3.0.

vdump c:/3.bmp depth 5000 5000

acts very weird... it dumps the below / on top of the viewer but not the viewer window itself.

Pawel

Carlos's picture

In the same labtop in 6.5.1 if very high values are used, an exception is raised.

Draw[8]> vdump c:/3.jpg depth 50000 50000
An exception was caught 004F514C : OSD_Exception_ACCESS_VIOLATION: ACCESS VIOLAT
ION at address 0xFEFD0000 during 'READ' operation
** Exception ** 004F514C : OSD_Exception_ACCESS_VIOLATION: ACCESS VIOLATION at a
ddress 0xFEFD0000 during 'READ' operation

Forum supervisor's picture

Dear Carlos,
The initial problem (black area) is not reproduced on our graphic cards.
Some details. The main limits appear from OpenGL driver. Technically it should be MAX_TEXTURE_SIZE and MAX_VIEWPORT_DIMS values provided by driver, but in some cases (limit of memory or errors) they might be lesser.
Most modern GPU hardware limited to 8192x8192 and topmost hardware currently limited to 16384x16384. Nevertheless many old cards have limits 4096x4096 and even 2048x2048.

The exception is reproduced on NVIDIA GeForce8600 GT (256 Mb). The corresponding issue with ID = OCC22696 has been registered. Later you can know if the issue is resolved by checking references to the specified ID in OCCT Release Notes. The analysis of the issue will take some time depending on our technical capability and availability of resources.
If you can't wait and the problem is urgent for you, you may contact us via Contact Form http://www.opencascade.org/about/contacts/.
We will try to find a solution/workaround acceptable for you.
Regards

Forum supervisor's picture

Some additional information on the Internet: http://developer.apple.com/graphicsimaging/opengl/capabilities/ (there is a limited list).
Regards