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.

3D Blocks - "One Flew Over the Cuckoo' Nest"

Started by minstrel, December 29, 2012, 11:18:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

#45
Quote from: Dr PR on January 01, 2013, 12:24:02 PM
Here are some questions:

1. Are objects that are created by mirroring in DesignCAD imported into Sketchup with reversed normals?

2. Do objects that have reveresed normals in Sketchup rotate the opposite direction (around their own handles) from objects that have correct normals?

3. If the point order of mirrored objects is reversed in DesignCAD before they are exported to Sketchup, do the normals import correctly?

Phil,  your questions about reversed surfaces normals is due to the fact that DesignCAD doesn't use a consistent "winding" order for surfaces.  It is a display issue for SketchUP since all rendering programs rely on the white face side facing out (in SketchUP a backwards face is shown as blue).

As to which program is causing the problems, it is DesignCAD's block and the dwg/dxf export.  SketchUP is rock solid when it comes to components.  Once you get a DesignCAD component to properly position itself in SketchUP, you can twist and rotate it all day long in SketchUP.  DesignCAD on the other hand will give you different export results depending on how the block is rotated before it is exported.  Rotate about Y in DesignCAD, then export, then import as seen.  That's what I'm showing in the graphics.  At zero it imports in SU OK, at 45 degrees it imports as shown . . .


prl

#46
Minstrel,

Thanks, going to try out my latest theory on your keys.

You too can play along  if you want.  For your piano (when I pulled it apart) it has all the handles at the back left corner.  Understood.  Try making a new piano from solids again (clean parts drawing), this time push your piano so that the back edge where you will be defining your handles is at say Z=100 cm.  Then block it per your normal approach and cut/paste insert around your hexagon.

I'll do the same.

MarkX

Quote from: minstrel on January 01, 2013, 12:13:06 PM
Golly gee, prl...I have no clue!  I do nothing special to get these results.  If you're asking where I set the 'handles'...well that will depend on the components design.  Tend to gravitate towards the lower-left-back, if that's any help.
Don't forget to post what your export settings were.

Mark

Dr PR

#48
prl,

I am familiar with the "outside" and "inside" faces some programs have for 2D planes. It is a cheap way to get different colors on opposite sides of walls. Some programs allow you to assign the different colors for inside and out. Personally, I have always thought this was pretty odd.

I am quite familiar with DesignCAD's peculiar treatment of point order in objects. It is the cause of many headaches, especially with "Surface Connect," "Extrude Along a Curve," "Hatch Fill" and other functions.

The question is why DesignCAD surfaces sometimes export with reversed normals? Does it have something to do with the point order? Does changing point order in DesignCAD solve the problem in Sketchup? It does sometimes correct rendering problems in DesignCAD.

It is clear that some objects rotate incorrectly around their handles in Sketchup. Why? It obviously has something to do with the way objects are created in DesignCAD, so what is happening in DesignCAD that causes these reversed rotations in Sketchup? Is it reversed normals? Does changing the point order in DesignCAD solve the problem in Sketchup?

****

Personally, I don't care about what happens in Sketchup. However, I do see these oddities in Sketchup as symptoms of problems in DesignCAD, and I would like to see these problems fixed.

Phil
DesignCAD user since 1987

prl

#49
Quote from: Dr PR on January 01, 2013, 01:16:47 PM
The question is why DesignCAD surfaces sometimes export with reversed normals? Does it have something to do with the point order? Does changing point order in DesignCAD solve the problem in Sketchup? It does sometimes correct rendering problems in DesignCAD.

Phil,  not trying to short-change your observations and sorry if I came across as condescending, just caught up in my latest theory and fully distracted.  Yes the point order in DesignCAD affects the rendering in SketchUP.  A typical cube in DesignCAD will consists of two planes and a grid between them.  The first plane has the winding order so that the surface normal is facing out of the cube, the back side plane has the same winding order which makes it point into the cube.  SketchUP  can fix errors like this but it also has an option to directly import what it gets. If you chose the later, SketchUP will typically show a DesignCAD cube as all blue faces and one white face or all white faces and one blue face.  Rendering programs don't know what to do with the back face of an object when seen from the outside.  I'm positive DesignCAD has some mixed code in it trying to overcome this.

As to the rest of the story, the Zzero theory.  Here is the latest using Minstrel's piano.  Seems like I'm able to repeat the export error, which is good news.

prl

Quote from: Dr PR on January 01, 2013, 01:16:47 PM
Personally, I don't care about what happens in Sketchup. However, I do see these oddities in Sketchup as symptoms of problems in DesignCAD, and I would like to see these problems fixed.

I can understand this but the various rendering routines tacked onto DesignCAD are coming from routines that are meant for TurboCAD and SketchUP.  Also getting blocks to export properly is a huge plus for DesignCAD.  DesignCAD is a very isolated platform and yet it is very similar to SketchUP in terms of modeling primitives. Both are polygon based programs.

What SketchUP lacks as a true CAD platform, DesignCAD has and what DesignCAD lacks in terms of advanced presentation tools and renderings, SketchUP has. 

prl

Minstrel, my Zzero theory is playing out so far.  Attached is the same piano but this time with all the block defining done at Z=0.   

Pearco

PRI:

When ever you load a component in Sketchup, it comes in with the insertion point at 0,0,0. Now does that mean the insertion point or handle from Dcad have to be at 0,0,0 if it is a block or symbol? Do all the blocks in the nest have to be oriented the same way to import into Sketchup correctly? All Sketchup components have their own axis and this may be some of the problem. Just some observations from someone who is not in the conversation but who has studied Sketchup a great deal.
Jim
User since ProDesign 1.5

prl

#53
Quote from: Pearco on January 01, 2013, 02:16:07 PM
Now does that mean the insertion point or handle from Dcad have to be at 0,0,0 if it is a block or symbol?

Jim, 

If you are making a component in DesignCAD that you intend for SketchUP,  in DesignCAD decide where you want the block insertion point (same point will be used in SketchUP) and make that point in DesignCAD absolute (0,0,0). Use the origin command if you've already drawn something or reposition/move your assembly to 0,0,0 manually. They are equivalent.   If you don't have blocks, things should export right every time.  I've been doing that approach for years.

If you have blocks, block define them relative to (0,0,0).  That should avoid this whole Zzero issue.

Let me know if this doesn't work or if you discover something new.

Thanks and I'm amazed anyone is reading all this.


I added these since commenting earlier:

Technical note 1:  In terms of DesignCAD blocks exporting to SU,  your block define primary handle X and Y value can be anything, but Z=0 is necessary. 

Technical note 2:  If you are making a DesignCAD block with intentions of going to SU, decide what the front face of your assembly will be and align it with the DesignCAD XY plane.  The front faces of your assembly do not need to be at Z=0, but your handle for the total block does.  Easier to understand once you've done it a few times.

Garry K

Wow - just got back from skiing and this thread has had a lot of activity.

The Z Zero hypothesis as it pertains DC 22 makes a lot of sense. It does not appear necessary in 16.3.

While converting my macros - I ended up introducing some bug which gives me some weird issues in both 16.3 and 22.1
The interesting part is that I exported it from 16.3 as DWG and SU imported it just fine.




prl

Quote from: Garry K on January 01, 2013, 03:17:30 PM
The interesting part is that I exported it from 16.3 as DWG and SU imported it just fine.

So far I'm only focusing on the dwg export.  Hate to think one gets something different if you use dxf . . . . but I shouldn't really be surprised.

Also - all this Zzero methodology so far only pertains to Dc 18 and forward.



MarkX

Quote from: prl on January 01, 2013, 01:37:22 PM
What SketchUP lacks as a true CAD platform, DesignCAD has and what DesignCAD lacks in terms of advanced presentation tools and renderings, SketchUP has.
Actually, SU (non-Pro) lacks presentation tools like DC's paperspace. And its rendering is interesting but not photo-realistic. You have to pay another $100 to get advanced rendering. I like the idea of having as much as possible all in one package so I don't have to fill my head with details of separate software.

What I like about SU is its drawing tools -- the fact that you can extrude a floorplan and instantly end up with a complete building. You can't do this in PS if you have any enclosed areas. The fact that you don't have to flounder around trying to find landmarks is good too.

Mark

prl

Quote from: MarkX on January 01, 2013, 05:46:46 PM
What I like about SU is its drawing tools -- the fact that you can extrude a floorplan and instantly end up with a complete building. You can't do this in PS if you have any enclosed areas. The fact that you don't have to flounder around trying to find landmarks is good too.

You and I are opposites on this one.  I like the DesignCAD tools for modeling and grunt 2d drafting work where one can control line types, line weights, etc.  . . .  typical CAD things. 

As far as photo-realistic renderings go, you have zero options with DesignCAD so I'm not sure I follow your argument there.  The native SU rendering mode is a flat shaded environment.  Not meant for photo-realism but for building models where it matters what materials you specify for the various surfaces.  Revit has that too.  Very productive. Avoids having to build in wire-frame.

If you really want the photo-realistic path, throwing an extra $100 at DesignCAD you will get you . . . .



MarkX

Quote from: prl on January 02, 2013, 04:27:18 AM
  The native SU rendering mode is a flat shaded environment.  ...  Very productive. Avoids having to build in wire-frame.
I like that too and wish that DC would emulate. However, that's an argument for designing in SketchUp, not DC. For a SU-like presentation, there's that very nice qs2 macro you wrote.

Quote
If you really want the photo-realistic path, throwing an extra $100 at DesignCAD you will get you . . . .
A slightly older version of TurboCad Deluxe with the lightwork render engine. Probably not as easy to use as the 3rd party attachments for SU. But it is an option.

Happy New Year++,
Mark

Garry K

Now that version 22.1 is working for me - I will abandon 16.3

I have the cabinet maker software working reasonably well with 1 anomaly that I can't figure out and it does have to do with blocks.

My strategy is to create everything in Layer 1 - my work layer - and then move the finished pieces to one of 8 temporary layers (12 through 19). Once a single cabinet is finished then I select the layers and move (select layer - apply layer), ( rotate and or mirror as necessary ) all the parts of the finished cabinet. Then I use GetAttr and PutAttr to put all of the cabinet parts into their final layers ( 2 through 9 ). I just subtract 10 from the layer number in GetAttr and then call PutAttr with the new layer number. Essentially I create a solid in the work layer and then convert it into a block.

The reason I do this is that each cabinet is initially built in the same 0,0,0 position for the lower left corner without worry of final  placement etc. Some cabinets such as Angled and Return cabinets (lazy susan) require mirroring and cabinets that are on wall 2 or 3 etc. require rotation.

Here's the rub - After all this moving there are weird artifacts showing up on Layer 1 - my work layer. In version 22.1 if I turn on "Symbol layers visibility controlled by Symbol Host Layer" and then turn off the work layer then the artifacts disappear.

BTW the artifacts ( possibly grid or mesh stuff ) do not show up when I don't do all the block defines.

Interestingly - these artifacts do not show up in SU. I'm pretty happy with how that is going.