1. Missing cursor in DirectEntry
Description:
There used to be a cursor in the DirectEntry widget, it looked like this “|”, now it’s gone.
Sample code:
from panda3d.core import *
from direct.gui.DirectGui import *
from direct.showbase import ShowBase
def _pos2d(x,y):
return Point3(x,0,-y)
def _rec2d(width, height):
return (-width, 0, 0, height)
def _resetPivot(frame):
size=frame['frameSize']
frame.setPos(-size[0], 0, -size[3])
frame.flattenLight()
base = ShowBase.ShowBase()
font = DGG.getDefaultFont()
font.setPixelsPerUnit(16)
entry=DirectEntry( frameSize=_rec2d(250,30),
frameColor=(1,1,1, 0.3),
text = "This is a test",
text_scale=16,
text_pos=(-240,14),
text_fg=(1,1,1,1),
text_align=TextNode.ALeft,
initialText="This is a test",
numLines = 1,
width=19,
focus=0,
suppressKeys=True,
parent=pixel2d)
_resetPivot(entry)
entry.setPos(_pos2d(250,32))
base.run()
2. p3d_ModelViewMatrix - third column or something(?)
Description:
This one’s a bit strange - I have a shader that strips the rotation from the model view matrix so that a model (plane) is always facing the camera. The code for the shader is from Geeks3D and it worked on 1.8 with 1.9 it only works on one axis
Sample code:
[in attachment softparticle.zip]
Screen:
3. Bullet rope rebels.
Description:
I’ve used a box dangling on a rope to simulate cloth and hair movement for a character, it worked for 1.8 but on 1.9 the box is removed or shoots into space - to be honest I don’t really know what’s happening it just won’t work - could be I did something wrong in my code (I’m no good with bullet), all the bullet-samples work - just sayin’ it worked on 1.8 it works not on 1.9. Using a BulletDebugNode I get this
Sample code:
github.com/wezu/cloth_sim the cloth_gpu.py file is the one that bugs out.
softparticle.zip (560 KB)