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.

objects go black when selecting in animation mode

Started by oldtimer, August 31, 2007, 09:18:43 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

oldtimer

I've a new V18 Dcad.  I've drawn a simple object of various shapes (planes) in about 6 colors, separated by layer and made them a group.  When I go to 3d mode the colors show correctly and the object behaves and looks correct.

At one point it worked in animation mode, but now when I select that object and move it it turns black, the entire group that is. 

If I move the object to a new position, the object returns to the proper colors during the movement and then goes black again.  During animation movement (static or otherwise), it is always black.

I figure I have mis selectied something I need to unselect but can't determine what.
There is a background color in this object, but it is moved to the back and a much lighter color than the nearly black rendering I'm seeing.   I've ungrouped and removed the background object and then regrouped with no help.

Even simple two color objects or newly added objects perform the same way.

These are all planes, and using default materal and smooth or flat shading mode.

Another animation performs normally, so it is isolated to this one somehow.  Any idea what I've done wrong?

Oldtimer

support

Sounds like you may be rendering using graphics acceleration and there are some display issues. Or it could be something as simple as a change in the lighting settings and the light sources need to be adjusted.

If it is the graphics acceleration you could find out by turning off the graphics acceleration in the DesignCAD shade command and see if it acts the same way. You will have to run the shading again after each edit but if the objects do not go black that could be the case. If they only go black with the graphics acceleration on and no when it is off then you might try going into the advanced display properties in Windows and turning down or off the Graphics or Hardware acceleration settings. If they go black regardless of the graphics acceleration setting then likely it is a lighting problem. You can adjust the lighting options thru the regular DesignCAD options by pressing q on your keyboard and going to the lighting tab.

oldtimer

#2
With the accelerator off, the object goes to wireframe with colored outlines of the plane objects but no internal colored panels.  If I select a shading display option in view, I get the colors back but it automatically turns on the accelerator and the black returns too.  I did the tutorial on the pulley earlier and it performs well with or without the accelerator and it is a much more complex object.   It does not turn to wireframe when the accelerator is turned off and it retains its colors during animation.

When the accelerator is off, the main view for my object is wireframe, but the front, top, side views are colored.  When I select the wireframe object in the main view, the front view of the object turns black in that view but remains wire frame in the main view.   I can animate without it turning black in the main view with the accelerator off and it animates correctly, although a wire frame and not solid colors as desired.   Any newly introduced plane does the same thing.   As I said, it worked fine but somewhere I contaminated the setup with some sort of change.   Old saved version of the same object that once worked correctly also come up not working properly now.

I've looked at the options and layers for both the pulley and my object and do not see a difference.  The light source is turned on for the same layer in both.  I've made an effort to make them identical as far as settings go.  The objects that don't work are not really solids other than active planes.  Is that a problem?  Maybe I've rotated slighty?  I did use the camera a few times to see what would happen.

oldtimer

One more thing - remember this is DC-18 trouble.   I tried DC-12:   I loaded the saved file (created in V18) into v12.0.025 and it worked normally after I ignored warnings about the file being created by a newer version.

No blacked out objects, normal translation, normal everything, although switching to animation mode did cause some screen hysterics for a moment as it loaded.  Then everything where it should be and everything colored ok during animation.

Seems to imply something in the preferences or loading into v18 for this particular series of files.  (older saved copies do same thing).  As I said, a newly created pully system drawn by me using your tutorials animates with normal colors.

Any ideas?   Not only do I want to fix this in V18, I want to know how to avoid it in the future.  Going back to V12 is not an option.

oldtimer

#4
I've edited this several times to refine the findings and the restement of the problem, add pictures etc.  If you have read this prior to Sunday morning, you might read it again. - oldtimer

A couple of more clues.  Shifting the position of the directional light source can almost reproduce the problem (doen't change anything to maroon color but can darken it) and also doen't seem to solve it.  I can set the light at certain positions to get the same degree of darkness before going  into animation.  But I can't set it to any position that solves the problem.  I've even rotated the object with the camera until I saw the back side with the same results.  Since the object has a right left orientation, it should be facing the right direction anyway.  I've also tried ungrouping and removing the background to no avail.  

Here is something revealing:  I opened a new copy of DC18 concurrent with the problem one.  I ctl c copied and pasted the head object into the new copy.  Colored panels that were already there behaved correctly even with the head object pasted in, but the head object turned black in the animation mode (when selected) while the original object behaved ok.  A new plane object added in 3D mode (animation off) after the head was introduced also worked ok.  So the problem is following the objects and is not related to any setup in the program other than something done within the objects. 

Problem restated:   (see the pictures attached - there are 6 animamation objects in each picture)
Here is a clearer statement of the problem at this point: DC18, XP, tons of memory.   When I first go into the animation mode, the objects on the screen (planes of various sizes and colors) are lighted properly and have the correct colors.   When i select an object and set the initial animation set point (first frame), the object retains its color.  When I click on a different time frame, (20 for example), the selected object turns nearly black/maroon immediately and from then on never returns to the normal color except while I am using the cursor to translate it to a new point.  As soon as I release it at the new point it goes black again.  It stays dark colored during any animation translation and during static frames and when the animation is stopped.  I get normal color if I pick it up and move it, then black when I put it down.

I've experimented a little.  panels that are white or lighter shades of grey turn maroon when selected.  Panels with color, such as light yellow, red, black and nearly black areas etc., turn dark grey.  So everywhere I've previously  mentioned "nearly black" the actual result depends on whether the panel is initially a white or light shade of grey or an actual colored panel.  You can see that below.  The red areas turn black and the white or grey areas turn maroon.   The experimentaion was done with a pure white panel (turned maroon), a light grey panel (turned maroon), a light yellow panel (tuned dark grey) and a dark panel, (turned dark grey)

Other objects on the screen retain their color until I select it.  After the first selection, the following ones turn dark as soon as I click on them.  Then they too remain black except while being moved by the cursor.

If I go out of animation mode, the normal colors return.   Changing the light source does not help. Going out of acceleration mode changes the object to wire fram outlines of the planes and all panel colors are lost until the accelerator is turned back on.

All this occurs in V18.  If I take the same objects and load them into V12, everything is cool.  Colors are retained.  A little flashing and griping about it having been created in a newer version, but animaition seems to work for this object in v12 but not in v18, once the screen went zig zagedy.   The figure does not work properly in V18.   A pully from the tutorial created in V18 by me works in v18 just fine.  There was a point when the objects were first made that v18 worked (best I recall).  I really don't want to start over until I know what I did wrong or if there is a problem I need to wait to be fixed.

What it looks like to me is the lighting for the object switches to an undesirable position when I click on the object for animation purposes or perhaps the color rendition goes into a threshold mode where certain shades or colors become either dark grey or maroon - two threshold points only.   This position does not seem to be in my control.  I can't get to the options menu in the animation mode.   During pickup for translation, the "switch" returns to normal and when set down, the "switch" goes to the threshold setting.

I have tried setting the one directional light source to a light green and seeing what happens in animation mode.  The image is light green until I click on an object and it immediately goes to a nearly black, maybe a little green tint.
I've also tried this with the directional light in various layers one at a time and no joy.

Getting frustrated. ???

Thanks,
Oldtimer



The top picture is in the 3D animation mode, turned on, but nothing selected and no points on the time line set.

The second picture is after selecting the objects.  I generally select one and put it through all the time line points before starting with another object.  The first object turns dark/maroon when I select the second time line set point.  The others follow then as I select them.  Once dark, dark forever (except when picked to move).

The bottom picture shows what happens when I select an object.  The dark head was the first selected object.  I picked it up and moved it toward the top left and did a screen capture before I released it.  You can see what I mean about normal color during object moving by a cursor pick.   When I set it down, the dark head moves to replace the colored one and then it is all dark again.  Notice the white/light grey areas turn maroon, other areas turn dark.



support

I am sure this is due to the driver for the graphics and some issue there. Could be that it is not the latest Windows Vista specific driver, could be the graphics/hardware acceleration in the Windows display properties needs to be turned down or off.

In the DesignCAD shading options there is a check box for graphics acceleration if you uncheck that the objects should shade with out turning black.

Also can you please provide a copy of the drawing file in question just so that we can check it here to see if there is anything else we can point out that will help recitify this issue.

oldtimer

#6
Support said:
"I am sure this is due to the driver for the graphics and some issue there. Could be that it is not the latest Windows Vista specific driver, could be the graphics/hardware acceleration in the Windows display properties needs to be turned down or off."

First of all, it is not a vista but XP (see my previous post).  Second, the file works with V12.0.025, so I don't see a graphics driver issue unless it is V18's driver, nor in the graphics accelerator.  Third, I've taken the trouble to recreate the objects one at a time into a new file and the new file works fine, so that tells me that it is a) not a windows driver problem, b)not a graphics accelerator problem and c)not a windows display problem.  I've also copied the head from the bad file to a new file where everything else works, so d) the problem is associated with the objects in the bad file.  The problem follows the file that is created, but a newly created file works fine unless I copy objects from the old one into the new. 

Support said:
"In the DesignCAD shading options there is a check box for graphics acceleration if you uncheck that the objects should shade with out turning black. "

Attached are pictures of the objects with graphic accelator off, both cases, animation mode on, both cases, head picked and moved, both cases.   You can see that the file that is in error is black when the accellertor is off for the defective file.  There appears to be no change for the file that works correctly whether the accelerator is on (applied, then ok) or off.

Having said that, I can work with the newly created file, but there is an issue there that needs to be evaluated and fixed so it doesn't happen again.  Something is wrong within that file. 

I've sent both files by email to you, Jerry.  Thanks.

support

Oldtimer,
Both  drawing files render just fine here, with one exception being that the BullDog Running file has some issues in its stacking order for what planes should be on top. Looking at the file I can tell that you have multiple planes stacked one on top of the other all sharing the exact same XYZ coordinates. This is bad planning as planes shared on the same axis can sometimes class and compete for display when rendering. If you will offset the planes in the Z axis so that what you want on top is in front and what you want behind is in the back then that rendering issue will go away. This change in the depth of the planes should not affect the look of the drawing in a negative manner.

The reason the newer files are not showing the same effect is that the newer drawing code took some of the issues with planes sharing the same space and made the handling of those shared axis planes a little smarter where the older file formating does nothing in regards to those considerations. Still it is a poor drawing plan to stack multiple planes in the same XYZ space.

oldtimer

Thanks, that is the very reason I did the second (newer) drawing with only one stacked plate, (the image and the background).   I suspected as much but the reason it happened is that there was virtually no information on how to achieve colors in the documentation sent with the DCad.  The assumption became that stacked plates were required to get seamless images.   There was a lot of experimentation going on on the first file due to that lack of information for newbies. 

The fact that it works ok in V12 and not in v18 and on your platform and not on mine means to me that there is still something not quite right in V18.   It did work ok on mine for a while until I made some change and later discovered it would not work properly and had no way of knowing how to get back to where it was.  Backup copies suddenly began to behave the same way.  I have 4 named files created at different points that were working when I added a new animation try.  Suddenly all 4 have the same problem.   Not good.  In addition to the ones turning black, I have another version that when it was reloaded came up completly blanked out white for the head.  That has happened twice.   

NOTE: The legs of the bad file have only two plates, one for the leg outline and one for the shadow at the back of the leg.  It renders badly.  I'm afraid that if two plates, one of which has been deliberely put at the back and one deliberatley put at the front render badly on v18 (animation mode after picking and moving a part) but not on v12, there is an issue that needs fixing in v18!

Once again, it would be extremely helpful and would keep newbies from abandoning the software if there were some step by step explanation in the color help file on what steps are required before you begin using colors for 2D and 3D.   Closed lines, plates, etc. hatch or no hatch, accelerator or no accelerator, etc.  Something!

Thanks again,
Jim




Dr PR

Here is a trick you might try. I often want to "paint" a surface over an existing surface. However, if you place two planes one on top of the other (coplanar), when DesignCAD renders the objects it more or less blends the two colors because both surfaces are "on top." Usually I get a surface with irregular splotches of both colors. To solve this problem I select the color/plane that I want to be "painted" on top of the other background plane and move it about 0.010 inch from the background plane on an axis perpendicular to the planes. Depending upon the curvature of the surfaces you may need to increase the separation. Actual paint layers are on the order of 0.005" to 0.010" thick.

By spacing the two surfaces apart this way the desired "top" surface will always render above the background surface. The "Move to front/back" commands have no effect upon the display order. Layer order has no effect upon the display order (for enabled layers).

Note that a separation that works OK with Gouraud shading might not work with Phong shading. You will have to experiment to find the proper spacing.
DesignCAD user since 1987

oldtimer

#10
OK, thanks,
That makes sense.   I assumed planes had color and order and the top plane would mask the lower.   I did not realize they were treated as coplaner.  Thank you for the extra help.  But....

Considering that, what I still don't understand is for the dogs legs I had only one plane over the greater part of the leg, and a smaller second plane only where the shadow was.  Yet the entire leg turned black when it should not have.  The single plane part turned maroon and the two-plane (shadow) part turned black.   That does not compute as a multiplane colored object.   Most of the dog's head was a single plane (light grey background) but some of the various darker grey areas (eyebrows, eyes, ears etc. ) were two or three plane areas (where there was accidental overlap).  Yet the single plane parts of the head turned maroon.  Other single plane objects introduced into the animation scene (squares, rectangles, trapazoids) for test purposes turned either maroon or black depending on the color selected.   

Jerry said that the objects rendered correctly there, but did he try it in the animation mode and pick an object for at least two time line frame positions?   It could be he was just looking at 3D and simply turned animation mode on without setting timeline and not picking objects.   The more I think about it, the less sense the explanation makes that it was a multiple coplaner problem.  Much of the object is single plane unless there is a duplicate backgound plane introduced there that I do not know about.

Below are two pictures.  The first has a single plane yellow object introduced in the 3D mode and switched to animation mode but not selected yet.   Note: The graphics accelerator is off for both pictures!

The second is the same yellow object that has been clicked on for for frame 10.  Notice that it turned black.  I've clicked somewhere else and it stayed black.    This is not a multiple plane rendering problem.   This is not a multiple plane object!

Any other ideas?

Oldtimer



support

I did try the animation mode and I did pick apart the drawing you sent playing with each aspect of it in animation mode setting frames and trying to render to see if I could getthe same results that you did but I could not getthem to happen. The drawing rendered correctly here with out turning black during any of my testing.

There may have been a few minor stacking order changes with the coplanar planes but there was no blackness. Coplanar planes will act differently at different times...some will black out the whole area of the two coplanar planes, some will mix the color of the planes, some will show an odd pattern in the shared area. In your drawing you have multiple planes grouped together and those groups whether only two planes or three where coplanar, and they were the cause of this issue. The point is if you alter the drawing structure so all those planes are all no longer coplanar then it will make a drawing that will work for you with out all this visual distortion you are currently seeing.

Now regarding the second example you have come up with...if you have one single plane comprised of three points that is rendering black in th eanimation mode I would like to hear what results other users are getting using your examples. I can not reproduce the problem but I am not saying that it is not happening for you I just can not make it happen here...and if no one else can make it happen too then we go back to the possibility of a system based issue.

So can any of you other users out there get similar results?

oldtimer

The single plane problem only occurs in the file I sent you and only in v18 where it was created.  It does not occur in the new file that I created, having to redo all the work done on the first drawing, now worthless.   My problem with that is something happened to that first file that I do not want to happen later with the new one.   New file works fine in the same system.  Old file doesn't.  New and old files work in same system in v12.0.025, but only the new one works properly in V18.

I have made a copy of the new file that works properly and then copied an object (just 1) from the old file into it using copy (ctl c) and paste (ctl v), the problem reproduces itself in the new file for the old object, but new objects do not exhibit the problem.  That leads me to believe that something about the attributes of the object itself is causing the problem.   

It is as if the old object triggers the annimation mode to light it from behind.  However, I know the old object is being viewed from the front because it is correctly oriented.

The old file has some backups under different file names.  One of those has a head the turns pure white (except for the outline) when I load it.   Strange things are a happening.

I will separate the planes Just to see what happens.  Is it necessary to separate them all or is it ok to do it on one of the objects for test?  For example a leg.  The single pane (yellow) object is probably coplaner with the multiplane objects.  I'll first try that with it separated on the z axis.  Then I'll try the legs on two different z settings.

If you think this is just a fluke file that is likely to never happen again, just tell me and I will go away.  If it is a possible problem with v18, and you don't have the resources to fix it, I will go away.  Just tell me.


Oldtimer



oldtimer

#13
I've Ungrouped the objects (recursive) and then separated by various z depths.   Did not help. tried it with yellow object, tried it with leg, tried it with dog body, no help.  Everything separated by different z axis values.  Even separted leg and its shadow into separate parts on screen (not overlaying each other), Separate parts, separate depths, ungrouped, no acceleration.  Both still turns black.   All the problems follow that one file and earlier copies of it.

New Test:   
(All DC18 on XP)
1) selected Running Dog file, selected all, deleted all, as a result, I have blank screen, no objects at all.
(Could not save it because it was deemed empty - would not give me a save menu). 

2) drew yellow plane on that same blank screen, saved under a new file name.
3) Selected animation mode, picked yellow object which immediately turned black and stayed black.  Saved and closed file.  That ought to tell you something about the problem.

4) Opened new file, drew yellow pane on screen, animates correctly.  That ought to tell you something else.

5) If I open a new file on top of the existing bad one, the new file animates correctly.
6) Copy any object from existing bad one into working new one, then new file does not work for old object that was copied in.  Turns black.  Other objects already there are still ok.   That should be a new clue even yet.

Weird behavior.  Only on V18.   V12 still works fine old or new file.  Windows XP in all cases.

I'm tired of fooling with it.

Jim

oldtimer

Jerry, I've just sent you two files.

Ok, this is as simple as it gets: 

These are both just a simple single-colored plane object.  Nothing else, no coplainer, no multiple objects no overlapping anything.  Nothing. One works properly and the other doesn't.

Someone there should be able to look into these and see what the difference is, even if it renders ok there.  Something is different between them. 

The Good test file and the bad test files are virtually identical. The Good one animates in color just fine.

The bad one turns black on me when the object is selected for any second animation frame.

I've emailed a copy to myself and loaded both into DC18 and verified that the emailed copy works for the Good one and fails for the bad one.   Repeatable results here.  Please have someone look at the data in the DCD file and see what the difference is.  It should tell the story.

Pictures below.


Jim