Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - msandin

Pages: [1]
Support / Polyline moving around
« on: January 09, 2016, 05:24:16 pm »

I've played around around with trying to add polylines for showing vertex normals but have failed because they would not behave correctly on the Y-axis. So I created this tiny example:

Code: [Select]
        Object3D object = ...;
        world.addPolyline(new Polyline(new SimpleVector[] {
                object.getTransformedCenter().calcAdd(new SimpleVector(1, 1, 1))
        }, RGBColor.RED));

The thing that happens is that as the polyline has the right direction and magnitude but originates a fair bit below the object when I stand close to it and as I back away from it in any direction the entire line moves further down and ultimately disappears through the floor of my level. The line doesn't seem to otherwise transform, it just moves downwards. The object and line are stationary, only the camera is moving, and only on the X- and Z-axes while rotation around the Y-axis. Am I misunderstanding how this is supposed to work?

Support / View Frustum top/bottom parameters
« on: November 10, 2015, 12:14:16 pm »

I'm working on a small project and I've got a slight problem. The observer is standing in a dungeon of sorts and I want him to see more of the floor than of the ceiling given that it's actually much more interesting. I found the interactive explanation at quite enlightening. What I want it the effect of setting bottom to "-0.7" and top to "1.3", e.g. the effect of moving the vanishing point up inside the viewport. And no, looking down slightly does not quite create the desired effect as that also affects the perspective on items making vertical lines non-parallell in screen space.

I've so far failed to replicate this in jPCT-AE, any way?


Pages: [1]