DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Rendering problems

Started by adriank, June 26, 2012, 09:38:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Adrian 2.0

I have 2 issues with rendering in V22 - the first has been around at least since V21, maybe even V20, but I always forget to post the issue - until now that is.
When saving a rendered JPG image from a 3D that has been rendered with graphic acceleration turned on the resulting JPG file only displayes 25% of the drawing - the top left quadrant to be exact. With graphics off, the image is exactly as defined.
The attached JPGs are captured from a simple test cube, with & without graphics enabled - both defining the same image extents of course!

The second issue is brand new to V22
When I have my 3D main window maximized I can't render the drawing with graphics acceleration turned off. If it's a simple drawing the rendered image flashes onscreen for a fraction of a second & then jumps back to wireframe view. A complex drawing goes through all the generation waiting time and then flashes back to wireframe so quickly I can't see the rendered image at all.
If the window is not maximized it renders no problem - it took me a day to work that one out.

A rendered image still saves to JPG or prints to PDF fine from a maximized view.

Lar

adriank, I don't experience either of your issues.

Lar

Dr PR

adriank,

Your first problem has been around for quite a while. I think it has been reported. I would note that it is the graphics acceleration in the Shading Dialog that seems to be the problem, and not the selection in the Options dialogs.

There is an associated problem that appears when graphics acceleration is enabled in the Shading dialog. You can't see all of the shading options in the Save Image File dialog.

In V22.0 beta 4/30/2012 I do not have a problem shading a maximized main window, with Gouraud shading with or without graphics acceleration enabled in the Shading dialog. I have no trouble with Phong shading.

I have been so busy lately that I haven't gotten around to installing the final version of V22.0. Maybe someone else can check this.

Phil
DesignCAD user since 1987

Adrian 2.0

Hi Phil,
I agree that the JPG issue is the result of having graphics accereration enabled in the shading dialog box - but I don't see any loss of options in the 'save image dialog' box when it is.
After experimenting some more today I noticed that if I don't un-check the 'same as current display' then I get absolutely nothing in my image.
My problem is that because there is such a vast difference in the finished rendering between 'graphics on' and 'graphics off' sometimes I can only get the appearance I want with graphics on. I've sometimes had to take multiple screen shots of my drawing & then stitch them back together in Photoshop to get what I want!

It's worth noting that when DCad saves an image file the file size is huge. You should open it in an editor & re-save it and the file size will be halved with no loss of quality.

For my other problem, not being able to render an image with 'graphics off' this is something I've never seen before yesterday, so I guess it may be a V22 'feature'!
It affects every quality of render - quick, gouroud and phong. There is a workaround for it which is to un-maximize, or detach the page from the DCad workspace, I'd like it fixed though.

DrollTroll

adriank,

OK, I see what you're talking about with saving images when it's shaded or hidden on-screen with graphics acceleration enabled. I suspect there's some kind of view centering problem going in with the OpenGL modes. Now that I'm aware of it, there's probably something we can do about it.

I can't reproduce your onscreen shading issue, however -- it may be specific to your machine.
Got Intellipoint installed? Try uninstalling it.
Is your graphics driver up to date?
Do you have some kind of "utility" program running in the background? Try using MSConfig and start the system in Diagnostic mode -- does that help?
25 years with DesignCAD

Dr PR

adriank,

For a very long time I did not realize there were shading options in the Save Image dialog that I wasn't seeing. I almost always have graphics acceleration enabled, so when I open the dialog and selected "Smooth Shading" all I saw were the same width, height and current display options that are available for  "Current Display" rendering.

But if you disable graphics acceleration in the Shading Options dialog, then open the Save Image dialog and select "Smooth Shading" the dialog box extends downward to give you an "Additional Settings" list with several more options.

****

I think DesignCAD saves images as uncompressed JPEGS. If you open them in Photoshop you can save the JPEG file with additional compression ("Image Quality" setting). This will reduce file size but at the expense of lower quality images.

****

If you use the "Current Display" option, no matter what pixel size you set for the image in the width and height boxes, you get the same image resolution as on the screen (806 x 804 pixels on my XP machine). Increasing the pixel width and height just breaks each image pixel into more pixels, but it does not change the image resolution. At the default pixel settings each "jaggie" on the screen maps to one pixel in the file. Quadruple the pixel setting and each screen jaggie maps to four pixels - the file size is larger but you get the same jaggies in the image. In other words, no matter how many pixels you choose, each jaggie will be the same relative size to the full image size as it is on the screen.

If you use "Smooth Shading" (graphics acceleration off) and change the width and height settings the file image will be regenerated so that the "jaggie" size is one pixel. Quadruple the pixels and the jaggies are 1/4 the size of the screen image, relative to overall picture size. You can generate very high resolution images, with huge file sizes and long rendering times, suitable for printing posters.

Phil
DesignCAD user since 1987

Adrian 2.0

Hi Phil,
Thanks for telling me about the shading options dropdown - the only consolation I have to make me feel less thick is that you never noticed them for some time either!
I see those options default with the same settings that were last used in the main render dialog box, so to some extent they are redundant anyway.
I did know about un-checking the 'same as current display' although I do recall getting cross with DCad before I realized what to do!

DT,
I don't think I have a problem with my machine because it works fine in V21 & V20. (I've un-installed any previous versions now)
It may be a problem with the program & I can try to re-install but I have no time to think about that just now.
This first showed up on a file with many 'distorted planes' in it - deliberately done on a house with curved roofs - which I did to make the file size more manageable. Now it refuses to render any file that is maximized.
Would you mind to try rendering the file & see in that's the problem?
I have a texture mapped onto those curved roofs which you'll need to take too if you want exactly same result.

Another issue that you will see in the file is the old problem of projecting shadows from behind the plane onto the surface - I can fix this by selecting the effected plane & reversing the order of the points, but because this is such a peliminary concept model I got bored  - a lot of those patches on the roof are not meant to be there!

cheers,
Adrian

Dr PR

#7
Adrian,

I am pretty convinced that the "backwards" shadows are caused by non-planar planes. Deliberately warping them as you have done is asking for trouble. Instead of warping a plane you should create a grid surface.

You can map a texture file onto an entire grid surface if you select "Grid Patch Mapping" in the Mapping Mode box.

Phil
DesignCAD user since 1987

Adrian 2.0

Phil,
I guess I was trying to explore the benefits of DesignCad to their maximum!
For years I have gone to great pains to make sure my planes are all exactly flat & when I get a warning that the points are not on the same plane I tried to fix it rather than click 'continue'.
Then I figured if DCad is happy to do it, why not let it!
For the sample roof 'plane' below (which is tricky to do as a single grid) it takes about 10 seconds to trace the boundaries & click 'continue'. To make a grid I need to extend the plane to make it somewhat rectangular, make a subtracting solid for the part where the valley cuts in, convert the grid to a solid & subtract it - more like 10 minutes worth.
The result on the left (distorted plane) has 30 points & the one on the right (grid/solid) has 749 points and they look exactly the same.

I certainly won't use the distorting shortcut to make a technically correct drawing, but for a quick image to show a client why not ask for trouble?

The 'grid patch mapping' got me some horrible results, the best results (not great, but acceprtable) was with box mapping. (side)

magic

Hi Adrian,

I downloaded the 3D.dcd and the ThatchFront1.jpg, but to appreciate it fully, could you please post the wall.jpg, which it's looking for in the f:\cox\ folder?

Thank you very much.
It's a kind of magic!




Adrian 2.0

Hi Magic,
Here you go - I'm not sure it'll make the drawing appreciably better though!
Cheers.

DrollTroll

adriank, your file renders fine for me with a maximized view (aside from the already-noted incorrect shadows). You might try toggling the offscreen bitmap setting in View Options; if that doesn't help, I'd be looking for changed drivers or new "utility" software on the system that wasn't there before.
25 years with DesignCAD

Adrian 2.0

Wow, DT - you are a genuine hero!
My 'Enable offscreen bitmap' was un-checked - I enabled it and everything works fine.
I never knew what an offscreen bitmap was... (if it's offscreen, why bother with it?)
I should point out that option is disabled in previous versions but they still render the file correctly - clearly the Tron Universe behind my keyboard is way beyond my understanding! Thanks very much for all your help everyone.

Dr PR

Adrian,

You are preaching to the choir about ways to minimize file size - I am almost paranoid about that. However, I strongly advise against creating non-planar polygons, especially if it is important to render the results. You will get all sorts of annoying shadows.

I have never deliberately created warped planes, but I naively created a lot of them by selecting a corner in Point Select mode and moving it slightly to fill a gap between planes. Then I started getting the stary shadows all over the place. Since the purpose of many of the models was to create illustrations I found I was wasting a lot of time creating useless drawings. There is no way to eliminate the stray shadows except to delete the distorted planes.

****

Be careful about cutting grids with Solid Subtract. It explodes the grid into a huge number of triangles, and file size increases drasticly. I have found it to be fairly easy to first create a large curved four sided grid surface with Surface Connect, and then use this first surface as a template to create a set of smaller grids.

Just use gravity snap to draw template lines for a new set of grids by snapping points to intersections on the template grid. Then create the new set of smaller grids, select them all and define them to be a solid.

It is a bit more work than your warped polygons, but the legitimate grid surfaces will not produce the stray shadows.

Phil
DesignCAD user since 1987

Bob P

IMHO, this is an inherent problem with grid "planes" that are actually non-planar.  Why does DC even create them?  Were they used in Autocad?

Split every non-planar grid entity into planar triangles and we wouldn't have these boolean problems.  I can live with more lines in wireframe mode.