News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Displaying images

Started by scottk, June 10, 2014, 07:49:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

scottk

Quote from: Lar on June 16, 2014, 07:36:29 AM
Quote from: scottk on June 16, 2014, 06:18:33 AM
For some reason the image will not stick. When I do it, the picture appears for a brief second then the screen flashes and it goes back one step.
To clarify:
a] Are using the 'Texture Mapping" command?
If so, by "image will not stick" do you mean:
b] while the screen is shaded the texture's bitmap image does not remain on the object it was applied to if you regenerate the screen (but the screen remains shaded)?...
or do you mean:
b] ...the window returns to wireframe mode if you regenerate the screen?
Lar

The window returns to wire frame

prl

Quote from: scottk on June 16, 2014, 08:38:46 AM
The window returns to wire frame

Probably because you are in wire frame to start with.  You've probably attached the image.  Close the texture dialog, now shade your primary working window as Lar indicates.

Lar

Quote from: scottk on June 16, 2014, 08:38:46 AM
The window returns to wire frame
My previous post says a lot, so to cut through all that:
...Shade with 'Gouraud' and 'enable graphics acceleration' enabled. Mapped textures will remain displayed and the screen will remain shaded no matter what you do (except changing the mode to 'wireframe' or 'hidden line removal').

I think this is the advice Minstrel was giving you.

Lar

scottk


samdavo

#34
Scott,
just chewin the fat here ...

1. There is also such a thing as "z fighting".  When two surfaces are coincident / overlain exactly, DCAD can have problems deciding which to display.  eg the red "X arrow" and the grey triangular wall in the attached, sometimes one , sometimes the other.   To be sure of your image getting seniority, make its plane slightly proud of the wall.

2. I'm gonna assume you are trying to add a drawing of an airconditioner, to a wall (?) and I post the same box mapped example from reply #27, this time stuck in a wall.  Texture mapping is the only way I know for an image to appear as 3D, whether on the side of a box, or on a plane.  (edit)  Actually I think you can also do it with a hatch - not sure about 3d though.   To add a small image to the centre of a large wall, and make it appear correctly in isometric or perspective, I would personally add that box - but you may prefer a small plane in front of the wall.   

3. This is texture mapped \box mapping\front , as seen in isometric.   Note that there are streaks on the sides. and these are determined by the very edges of your jpeg. More on that in reply #36 below.

samdavo

Hope you don't mind, but I have added that aircon to one of your windows in your original drawing - probably in the wrong spot :) .

The other thing I am using is prl's qs2.d3m macro, which only lasts for one screenshot at a time - but is still a handy way to get lines as well as shading.  (I attach that macro as well - just make sure you are in gerrard (for the jpeg), and accelerator on (for the qs2) before you run qs2.
cheers

samdavo

#36
As for the edges of a photo being important - here's the difference between a white line at the top of a jpeg, and a brownXXX   DARK one.  Compare the first sip of a freshly poured beer.  :)

Re the second jpeg (and third):-
Sorry that sentence was misleading, and needs further explanation.  the reason the far wall of the glass is visible in the second jpeg is because the jpeg is box-mapped-front onto a hollow cylinder, and you can see the image on both front and back    There is a DARK line at the rim of the glass however, and that is the top of the jpeg, which I was trying to describe.

Re the first jpeg (and fourth) :-
Here the glass is a solid cylinder(tapered), and the jpeg is white at the top edge - hence you get a white smear across the top surface (= froth).   (2 cents)

If I had used the third jpeg to texture map on the first 3D glass-shape (just being poured), then it would have had a layer of black froth on top. 
(off-topic) Reminds me of a wine reviewer discussing wine from Newcastle in Aus, which is wine-growing area, but also coal-mining.   ... "compared to the lively bouquet of the Barossa and Margaret River wines, steeped as they are in wine growing tradition, etc etc - compared to them, this Newcastle wine leave a black smudge on your top lip." :)   

samdavo

#37
Of course you can texture map more than one face, but I suspect you have to explode the box, and apply the texture to the various planes one at a time.  I ended up using Plain Warp Mapping (not box) - and one of them needed a 90 degree rotation for some reason (?)  Mine not to reason why, mine just to post the result and get back to painting the house :)

(pretty obvious that I'm not an airconditioning expert - anyway these are just jpegs I found on the internet).

samdavo

#38
PS Now there's a funny thing.  I have to turn off graphics accelerator to get the second textured face - otherwise the one with the red and blue piping diagram becomes a plain light grey plane (2 cents).

Jpegs show With and without accelerator.

(Both are Plane Warp Mapping \ Default - applied to planes exploded from a box shape).
Maybe there's a limit on how many textures can be accelerated ?

samdavo

#39
ok - moving on a few steps.  (probably this post should be called "making a Custom Mirror of a pseudo-isometric" ...

Suppose you want to mirror a pseudo-isometric, and thereby show the same airconditioner putting out cold air rather than hot air...

Incidentally, I have drawn that "box" with X = 500, Y = 300, and Z = 400. 

1. use the xyzhere.d3m macro to "get your bearings".
2. draw an ortholine in the Z direction, OS.
Note the View toolbox,  (H = 55 deg)
3. Rotate OS about Y axis - (180 - 55) = -125 deg = line OT
(the other option is just to rotate it 55 degrees, as per the H value in viewbox )

4. Custom mirror the airconditioner about plane OTY  = vertical "straightahead plane" through the eye
5. You now have an airconditioner putting out hot air (left hand), as well as one putting out cold air (right hand mirror image) - even if you have to re-insert and juggle the orientation and "flips" of the right hand pipework jpeg.

samdavo


samdavo

#41
Just adding to that point that only one texture-map can be displayed if the graphics accelerator is on ...  here are 2 jpegs,
1. one with it off, and two texture maps visible (but I need to add shadows to see the wall),
2. a second with it on, and using qs2 to show lines that show the walls (and only one texture map visible).

i.e. One shows the piping diagram on the side of the egg-nitioner, the other doesn't ( 2 cents)