cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
derekjackson
Expert

Hotspots stop working

Hi,
I'm trying to get my head round hotspot to make my object stretchy, but they seem to stop working at random...

This is my 3D code:
HOTSPOT 0, 0, 0
HOTSPOT A, 0, 0
HOTSPOT A, B, 0
HOTSPOT 0, B, 0
HOTSPOT 0, 0, zzyzx
HOTSPOT A, 0, zzyzx
HOTSPOT A, B, zzyzx
HOTSPOT 0, B, zzyzx
HOTSPOT A/2, B/2, zzyzx

! Walls
material mat_walls
BLOCK A, B, zzyzx

! Roof
!material mat_roof
IF r_type = "Pitch" THEN	! Pitched Roof

	ADDz zzyzx
	ROTx 90

	cPRISM_ mat_walls, mat_walls, mat_roof, 4, -B,
		0,0,15,
		A/2,r_height,15,
		A,0,15,
		0,0,15

	IF r_overhang > 0 THEN
		material mat_roof
		ADDz r_overhang
		PRISM 9, -(B + (2*r_overhang)), 
			0,0,
			-r_overhang,0,
			-r_overhang,r_overhang,
			A/2,r_total_height+r_overhang,
			A+r_overhang,r_overhang,
			A+r_overhang,0,
			A, 0,
			A/2,r_height,
			0,0
		DEL 1
	ENDIF

	DEL 2
ENDIF
It works fine unless r_overhang is anything other than 0 - then all of a sudden it stops being stretchable. Any ideas why this might happen?

Thanks,

Derek
http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
1 Reply 1
Anonymous
Not applicable
Hi Derek,

I'd use the dynamic hotspots (GDL Ref Manual, page 133). They are much more reliable.

HTH.

p.s.: Also check this AC9 Landscaping house made by Dragan Lazarevic. It seems to be what you are looking for.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!