<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Tree Bitmap casts sqaure shadow?? in Modeling</title>
    <link>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67021#M34193</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I have clicked "New and Reset" and still when I place a bitmap tree library part it casts a square shadow.  I am stumped.  What am I doing wrong?&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 09 Jun 2004 03:42:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-06-09T03:42:32Z</dc:date>
    <item>
      <title>Tree Bitmap casts sqaure shadow??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67021#M34193</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I have clicked "New and Reset" and still when I place a bitmap tree library part it casts a square shadow.  I am stumped.  What am I doing wrong?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Jun 2004 03:42:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67021#M34193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-06-09T03:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Tree Bitmap casts sqaure shadow??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67022#M34194</link>
      <description>This is a bug in 8.1 (perhaps 8.0 too) that David NC and I (and probably others) have been complaining about for some time.  The shadow masking worked properly in 7.0 and earlier.&lt;BR /&gt;
&lt;BR /&gt;
No really good solution for trees ... but for people, place the image on the plan, trace a slab over it, save as an upright GDL object, apply the person bitmap to it, and align texture.  A pain, but a workaround.&lt;BR /&gt;
&lt;BR /&gt;
Alternatively, if you have Piranesi or Artlantis, do the bitmap trees there...&lt;BR /&gt;
&lt;BR /&gt;
Sorry.&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Wed, 09 Jun 2004 07:30:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67022#M34194</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2004-06-09T07:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Tree Bitmap casts sqaure shadow??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67023#M34195</link>
      <description>There are a lot of good bitmap trees at &lt;A href="http://www.gdlcentral.com" target="_blank"&gt;www.gdlcentral.com&lt;/A&gt;. They're free and they've just been uploaded! I'd recommend downloading the entire library zip file, rather than each tree manually.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Link.</description>
      <pubDate>Wed, 09 Jun 2004 14:18:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67023#M34195</guid>
      <dc:creator>Link</dc:creator>
      <dc:date>2004-06-09T14:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Tree Bitmap casts sqaure shadow??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67024#M34196</link>
      <description>&lt;BLOCKQUOTE&gt;Link wrote:&lt;BR /&gt;There are a lot of good bitmap trees at &lt;A href="http://www.gdlcentral.com" target="_blank"&gt;www.gdlcentral.com&lt;/A&gt;. They're free and they've just been uploaded! I'd recommend downloading the entire library zip file, rather than each tree manually.&lt;/BLOCKQUOTE&gt;

Sadly, these too, cast rectangular shadows.  The revised Garden Works trees  are much better than the billboard tree that comes in the standard AC library though, whether for views at different angles ... or for flythroughs or VRs.  Just no useful shadows if rendered in AC until they fix the masking problem.&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Thu, 10 Jun 2004 04:51:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67024#M34196</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2004-06-10T04:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Tree Bitmap casts sqaure shadow??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67025#M34197</link>
      <description>Karl,&lt;BR /&gt;
Actually its not a bug...ArchiCAD's rendering engine just needs a little help. If you follow the modification steps below to edit the "TreeBitmap.gsm" object, you'll have a tree object that casts shadows! Of course it will be limited to the tree images that come with the standard ArchiCAD library. If there's enough interest, I may offer a more sophisticated version that will call any tree image you choose to store in your library. I personally use Image Cels and get great results&lt;BR /&gt;
&lt;BR /&gt;
Anyway here goes:&lt;BR /&gt;
&lt;B&gt;1.) Open the "TreeBitmap.gsm" object&lt;BR /&gt;
2.) Comment out the "entire" existing 3D script and paste the following in its place:&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
!!!____________________________________________!!!&lt;BR /&gt;
!!!       SCRIPT MODIFIED BY dvk 061004        !!!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
define texture "shadowmap" pic, a,zzyzx,1,0&lt;BR /&gt;
shadow on&lt;BR /&gt;
define material "shadowmap" 20,&lt;BR /&gt;
1,1,0,&lt;BR /&gt;
.58,.85,0,1,&lt;BR /&gt;
0,&lt;BR /&gt;
0,&lt;BR /&gt;
.878401,.513481,.412253,&lt;BR /&gt;
0,0,0,&lt;BR /&gt;
0,&lt;BR /&gt;
IND(fill, "solid fill"),61,&lt;BR /&gt;
IND(texture, "shadowmap")&lt;BR /&gt;
material shadowmap&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!!! rotate shadow mask to sun's azimuth&lt;BR /&gt;
if SYMB_MIRRORED goto 5&lt;BR /&gt;
rotx 90&lt;BR /&gt;
roty ((GLOB_SUN_AZIMUTH)+90)-w~&lt;BR /&gt;
goto 10&lt;BR /&gt;
5:&lt;BR /&gt;
rotx 90&lt;BR /&gt;
roty -((GLOB_SUN_AZIMUTH)+90)+w~&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!!!create plane for shadow mask&lt;BR /&gt;
10:&lt;BR /&gt;
&lt;BR /&gt;
plane_ 4,&lt;BR /&gt;
-a/2,0,0,1,&lt;BR /&gt;
a/2,0,0,1,&lt;BR /&gt;
a/2,zzyzx,0,1,&lt;BR /&gt;
-a/2,zzyzx,0,1&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;BR /&gt;
!!! make visible part of tree&lt;BR /&gt;
!!! rotate perpendicular to camera&lt;BR /&gt;
shadow off&lt;BR /&gt;
material m_&lt;BR /&gt;
&lt;BR /&gt;
del top&lt;BR /&gt;
dkx=K~-X~:if dkx=0 then dkx=1&lt;BR /&gt;
dly=L~-Y~:if dly=0 then dly=1&lt;BR /&gt;
dazi=ATN(dly/dkx)&lt;BR /&gt;
&lt;BR /&gt;
    if (dazi+90) &amp;gt;90 then rotz 180&lt;BR /&gt;
    if (dazi+90) &amp;lt;90 then rotz 0&lt;BR /&gt;
    &lt;BR /&gt;
if SYMB_MIRRORED goto 20&lt;BR /&gt;
rotz 90+dazi-W~ &lt;BR /&gt;
goto 30&lt;BR /&gt;
&lt;BR /&gt;
20:&lt;BR /&gt;
rotz -90-dazi+W~&lt;BR /&gt;
&lt;BR /&gt;
30:&lt;BR /&gt;
pen 10&lt;BR /&gt;
ROTX 90&lt;BR /&gt;
ADDX -A/2&lt;BR /&gt;
picture pic,a,zzyzx,1&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
end&lt;BR /&gt;
!!!____________________________________________!!!&lt;BR /&gt;
!!!       SCRIPT MODIFIED BY dvk 061004        !!!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;3.) Switch to the parameter script, comment and/or delete the entire exisitng parameter script and paste the following in its place:&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!!!____________________________________________!!!&lt;BR /&gt;
!!!       SCRIPT MODIFIED BY dvk 061004        !!!&lt;BR /&gt;
&lt;BR /&gt;
values "pic" "decid1","decid2","decid3","pine1","pine2"&lt;BR /&gt;
&lt;BR /&gt;
!!!____________________________________________!!!&lt;BR /&gt;
!!!       SCRIPT MODIFIED BY dvk 061004        !!!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!!!values "pic" `Deciduous 1`,`Deciduous 2`,`Deciduous 3`,&lt;BR /&gt;
!!!`Pine 1`,`Pine 2`&lt;BR /&gt;
&lt;BR /&gt;
values "gs_detlevel_3D"  `Detailed`,`Off`&lt;BR /&gt;
&lt;BR /&gt;
if gs_cont_pen=0 then parameters gs_cont_pen=4&lt;BR /&gt;
if gs_fill_pen=0 then parameters gs_fill_pen=91&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
values "typ" `Style 1`,`Style 2`,`Style 3`,&lt;BR /&gt;
`Style 4`,`Style 5`,`Style 6`,`Style 7`,&lt;BR /&gt;
`Style 8`,`Style 9`,`Style 10`&lt;BR /&gt;
&lt;BR /&gt;
!!!____________________________________________!!!&lt;BR /&gt;
!!!       SCRIPT MODIFIED BY dvk 061004        !!!&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;4.)If you check the 3d Script you may get a message stating something like "error in definition of materials..." Just ignore this and save your object.&lt;BR /&gt;
&lt;BR /&gt;
5.)You should now have a fully working, shadow casting, camera rotating, tree object!!! (note that the tree image rotates to the camera but the shadow plane rotates to the sun!!!)&lt;BR /&gt;
&lt;BR /&gt;
6.) place the object in your model and do a 3d view -  it should rotate to the camera. If you change the camera position, you may need to rebuild the  window in order for the object to update to the new camera postion.&lt;BR /&gt;
&lt;BR /&gt;
7.) And finally, make sure you the Photo Rendering Setting's "Options..." set to "use transparency in shadow calculations"&lt;BR /&gt;
&lt;BR /&gt;
Happy Script Editing! Please let me know your results,&lt;BR /&gt;
Regards,&lt;BR /&gt;
Dan K&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Karl wrote:&lt;BR /&gt;This is a bug in 8.1 (perhaps 8.0 too) that David NC and I (and probably others) have been complaining about for some time.  The shadow masking worked properly in 7.0 and earlier.&lt;BR /&gt;
&lt;BR /&gt;
No really good solution for trees ... but for people, place the image on the plan, trace a slab over it, save as an upright GDL object, apply the person bitmap to it, and align texture.  A pain, but a workaround.&lt;BR /&gt;
&lt;BR /&gt;
Alternatively, if you have Piranesi or Artlantis, do the bitmap trees there...&lt;BR /&gt;
&lt;BR /&gt;
Sorry.&lt;BR /&gt;
&lt;BR /&gt;
Karl&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/16817iF8540F7A1989F706/image-size/large?v=v2&amp;amp;px=999" border="0" alt="temptree.JPG" title="temptree.JPG" /&gt;</description>
      <pubDate>Thu, 10 Jun 2004 19:45:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67025#M34197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-06-10T19:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Tree Bitmap casts sqaure shadow??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67026#M34198</link>
      <description>&lt;BLOCKQUOTE&gt;Dan wrote:&lt;BR /&gt;Karl,&lt;BR /&gt;
Actually its not a bug...ArchiCAD's rendering engine just needs a little help. &lt;/BLOCKQUOTE&gt;

Can't follow all of that at the moment, Dan (but thank you!) ... but to clarify:  it is a bug, because the objects worked in 7.0.  Whether the bug is in the objects themselves or in the engine is another matter, but something that used to work no longer works = usability bug.&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Fri, 11 Jun 2004 01:02:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67026#M34198</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2004-06-11T01:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Tree Bitmap casts sqaure shadow??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67027#M34199</link>
      <description>&lt;BLOCKQUOTE&gt;Karl wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Dan wrote:&lt;BR /&gt;Karl,&lt;BR /&gt;
Actually its not a bug...ArchiCAD's rendering engine just needs a little help. &lt;/BLOCKQUOTE&gt;

Can't follow all of that at the moment, Dan (but thank you!) ... but to clarify:  it is a bug, because the objects worked in 7.0.  Whether the bug is in the objects themselves or in the engine is another matter, but something that used to work no longer works = usability bug.&lt;BR /&gt;
Karl&lt;/BLOCKQUOTE&gt;

&lt;B&gt;&lt;BR /&gt;
Try this, it works very well, a complete replacement for all Picture objects, using the same parameters mostly, and using A and zzyzx. Casts shadows perfectly!!!&lt;BR /&gt;
 this is in the IOMWAC book.&lt;BR /&gt;
You can add the object turning routine if you want.&lt;BR /&gt;
&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!!Billboard.gsm&lt;BR /&gt;
!Omwac book&lt;BR /&gt;
!2D Script&lt;BR /&gt;
!June 2004&lt;BR /&gt;
PEN cont_pen&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT2 0,0&lt;BR /&gt;
HOTSPOT2 A,0&lt;BR /&gt;
HOTSPOT2 A/2,0&lt;BR /&gt;
CIRCLE2 0,0,A/100&lt;BR /&gt;
CIRCLE2 A,0,A/100&lt;BR /&gt;
CIRCLE2 A/2,0,A/100&lt;BR /&gt;
LINE2 0,0,A,0&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!Billboard Object rectangular Master Script&lt;BR /&gt;
DEFINE TEXTURE 'biltexture' picture_file,&lt;BR /&gt;
 A,zzyzx,1,0&lt;BR /&gt;
DEFINE MATERIAL 'bilmat' 24,&lt;BR /&gt;
 1,1,1,&lt;BR /&gt;
 0,61,IND(TEXTURE,'biltexture')&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!Billboard Rectangular.gsm&lt;BR /&gt;
!3D Script&lt;BR /&gt;
!This one casts shadows correctly&lt;BR /&gt;
!June 2004&lt;BR /&gt;
PEN cont_pen&lt;BR /&gt;
IF shad THEN SHADOW ON ELSE SHADOW OFF&lt;BR /&gt;
MATERIAL bilmat&lt;BR /&gt;
ROTx 90&lt;BR /&gt;
POLY_ 5,&lt;BR /&gt;
0,0,1,&lt;BR /&gt;
A,0,1,&lt;BR /&gt;
A,zzyzx,1,&lt;BR /&gt;
0,zzyzx,1,&lt;BR /&gt;
0,0,-1&lt;BR /&gt;
&lt;BR /&gt;
BASE&lt;BR /&gt;
 VERT 0,0,0&lt;BR /&gt;
 VERT 0.1,0,0&lt;BR /&gt;
 VERT 0,0.1,0&lt;BR /&gt;
 VERT 0,0,0.1&lt;BR /&gt;
  COOR 258, -1,-2,-3,-4&lt;BR /&gt;
   BODY -1&lt;BR /&gt;
DEL 1&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Parameters – picture_file (abc), shad (Boolean) and cont_pen (Pen)&lt;BR /&gt;
         A and B and ZZYZX</description>
      <pubDate>Tue, 15 Jun 2004 19:50:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67027#M34199</guid>
      <dc:creator>david nicholson-cole</dc:creator>
      <dc:date>2004-06-15T19:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tree Bitmap casts sqaure shadow??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67028#M34200</link>
      <description>or create a material (with the image as the texture) with the alpha mask as transparency&lt;BR /&gt;
&lt;BR /&gt;
apply to zero thickness wall and adjust wall size and texture origin as reqd&lt;BR /&gt;
&lt;BR /&gt;
shadows work fine with this&lt;BR /&gt;
&lt;BR /&gt;
obviously this won't autorotate to the camera but it it would'nt be difficult to turn it into a gdl object that did</description>
      <pubDate>Tue, 22 Jun 2004 21:59:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Tree-Bitmap-casts-sqaure-shadow/m-p/67028#M34200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-06-22T21:59:23Z</dc:date>
    </item>
  </channel>
</rss>

