How to control texture angle on element created by EXTRUDE
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-12-10 09:24 PM
‎2017-12-10
09:24 PM
But texture on top surface of the created element has wrong direction.
Even if I create texture on the runtime and assign angle by 0,
the material placed on the any other angle.
The code is:
angle = 0
define texture "owntile" "texture_wood.jpg",1,1,256, angle
define material "tilemat" 21,
0.7,0.7,1,
0.15,0.95,0,0.0,
0,0,
ind(fill,"fillAttribute_1"),1,
ind(texture,"owntile")
material tilemat
count = GoodwinGDLPointsCount
for i=1 to count
PUT GoodwinGDLPoints
next i
if count<>0 then
EXTRUDE count,0,0,0.04, 1+2+4+16+32,
GET(NSP)
endif
!points are placed on parameter array.
12 REPLIES 12

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-12-15 12:28 PM
‎2017-12-15
12:28 PM
Look for COOR (COOR{3}) command
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-12-15 02:01 PM
‎2017-12-15
02:01 PM
Ye-e-s-s-s-s!)))
Really the COOR command!
!This code works:
define texture "owntile" "texture_wood.jpg",1,1,256,GoodwinGDLAngle
define material "tilemat" 21,
0.7,0.7,1,
0.15,0.95,0,0.0,
0,0,
fillAttribute_1,1,
ind(texture,"owntile")
material tilemat
count = GoodwinGDLPointsCount
for i=1 to count
PUT GoodwinGDLPoints[1]/1000,GoodwinGDLPoints[2]/1000,GoodwinGDLPoints[3]
next i
if count<>0 then
EXTRUDE count,0,0,0.04, 1+2+4+16+32,
GET(NSP)
VERT 0, 0, 0 !#1 center point
VERT 1, 0, 0 !#2 x ward
VERT 0, 1, 0 !#3 y ward
VERT 0, 0, 1 !#4 z ward
COOR 2+256+1024, 1, 2, 3, 4
BODY 1
endif
Thank YOU very mutch !!!)
Really the COOR command!
!This code works:
define texture "owntile" "texture_wood.jpg",1,1,256,GoodwinGDLAngle
define material "tilemat" 21,
0.7,0.7,1,
0.15,0.95,0,0.0,
0,0,
fillAttribute_1,1,
ind(texture,"owntile")
material tilemat
count = GoodwinGDLPointsCount
for i=1 to count
PUT GoodwinGDLPoints
next i
if count<>0 then
EXTRUDE count,0,0,0.04, 1+2+4+16+32,
GET(NSP)
VERT 0, 0, 0 !#1 center point
VERT 1, 0, 0 !#2 x ward
VERT 0, 1, 0 !#3 y ward
VERT 0, 0, 1 !#4 z ward
COOR 2+256+1024, 1, 2, 3, 4
BODY 1
endif
Thank YOU very mutch !!!)
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-12-15 02:05 PM
‎2017-12-15
02:05 PM
Glad to hear
!
I need to learn more about this COOR command....!

I need to learn more about this COOR command....!
- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »