xissburg
@xissburg
New Member
Joined: Feb 15, 2024
Topics: 3 / Replies: 9
Reply
RE: Update texture in viewport after calling setPixels

The code is quite simple, I just call a setPixels inside a change handler. This is the relevant section of the code: when transform sr changes handl…

15 years ago
Forum
Topic
Forum
Replies: 2
Views: 22
Reply
RE: Error: "No outer local variable references permitted here", when construct

Now I see that the only choice is to use global variables inside the change handler. But I have several splines like that and one unique ni thing for …

15 years ago
Forum
Reply
RE: Error: "No outer local variable references permitted here", when construct

Well actually I misunderstood the documentation. That last parameter is a variable where the object which is being monitored for events is assigned to…

15 years ago
Forum
Reply
RE: Error: "No outer local variable references permitted here", when construct

Wow thanks. That is not exactly what my code should look like because I want for that ni to be available inside the change handling function. But the …

15 years ago
Forum
Reply
RE: MapButton, get map as BitmapTexture

OOH! I was trying map.width instead of map.bitmap.width…so I thought I didnt have a BitmapTexture object but a TextureMap instead but I was not access…

15 years ago
Forum
Topic
Forum
Replies: 2
Views: 10
Reply
RE: How to tell if an object is casting a shadow on another

Cant you do something like the shadow mapping algorithm? Render from the light position (you may need more than one render, for example six to cover t…

15 years ago
Forum
Reply
RE: Area and Volume

Wow, you would only use numerical integration to compute areas of very irregular shapes. You can compute the area of a triangle simply by computing ha…

15 years ago
Forum
Reply
RE: Geometrical calculations : points, lines, planes : intersections, distances, angles

Very strange to get [size=2]0.0197823, you should get 0 since the vectors are pointing in the same direction(the angle between them is 0 ). Maybe its…

19 years ago
Forum
Reply
RE: Geometrical calculations : points, lines, planes : intersections, distances, angles

I just wanna give you two link for resources about geometry (intersections , distance computations etc): (algorithms section) Hope this helps

19 years ago
Forum