32 |
vob.AbstractUpdateManager.defaultAnimationTime = 1500 |
vob.AbstractUpdateManager.defaultAnimationTime = 1500 |
33 |
vob.AbstractUpdateManager.fractCalc = vob.AbstractUpdateManager.LinearCalculator(0) |
vob.AbstractUpdateManager.fractCalc = vob.AbstractUpdateManager.LinearCalculator(0) |
34 |
|
|
35 |
lineconn = GLRen.createLineConnector(.5, .5, .5, .5) |
# The connector is just a vob. |
36 |
|
lineconn = vob.vobs.SimpleConnection(.5, .5, .5, .5) |
37 |
|
lineconn.glsetup = GLCache.getCallList(""" |
38 |
|
PushAttrib ENABLE_BIT LINE_BIT |
39 |
|
Disable TEXTURE_2D |
40 |
|
LineWidth 5 |
41 |
|
Enable BLEND |
42 |
|
Color 0 0 0 0.6 |
43 |
|
""") |
44 |
|
lineconn.glteardown = GLCache.getCallList(""" |
45 |
|
PopAttrib |
46 |
|
""") |
47 |
|
|
48 |
#lineconn = GLRen.createSqFilletConnection(30, 1, .125, 6) |
#lineconn = GLRen.createSqFilletConnection(30, 1, .125, 6) |
49 |
|
|
50 |
size = jarray.zeros(2, 'f') |
size = jarray.zeros(2, 'f') |
167 |
otherAnchorCS = otherNode.renderBuoy(self.vs, into, linkId, otherAnchor, None) |
otherAnchorCS = otherNode.renderBuoy(self.vs, into, linkId, otherAnchor, None) |
168 |
self.cs[into] = (otherNode, linkId, otherAnchor, into) |
self.cs[into] = (otherNode, linkId, otherAnchor, into) |
169 |
|
|
|
self.vs.map.put(GLCache.getCallList(""" |
|
|
PushAttrib ENABLE_BIT LINE_BIT |
|
|
Disable TEXTURE_2D |
|
|
LineWidth 5 |
|
|
Enable BLEND |
|
|
Color 0 0 0 0.6 |
|
|
""")) |
|
|
|
|
170 |
self.vs.map.put(lineconn, anchorUnit, |
self.vs.map.put(lineconn, anchorUnit, |
171 |
self.vs.unitSqCS(otherAnchorCS, "UN")) |
self.vs.unitSqCS(otherAnchorCS, "UN")) |
172 |
|
|
|
self.vs.map.put(GLCache.getCallList(""" |
|
|
PopAttrib |
|
|
""")) |
|
173 |
|
|
174 |
# Interpolation : old mainvp -> to new buoy |
# Interpolation : old mainvp -> to new buoy |
175 |
if hasattr(self, "animationCS_main") and \ |
if hasattr(self, "animationCS_main") and \ |