So I have some path generator which now works like this
http://www.openprocessing.org/visuals/?visualID=2615 (There is source; WQRNING - JAVA APPLET)
I want to create some 3D object using paths I generated so it locked in one of perspectives similar to what I get now in 2D.
So how do I dynamically construct 3D object by adding paths...
I am currently trying to convert a touch from screenspace, to where it is in worldspace for a 2D game I am working on.
The view I am working on has nearly the same coordinate system as the screen, basically if someone touches the x = 345, y = 500 pixel on the screen, it will be the same on the view, although the y will be backwards beca...
I have a plane defined by a normal (n) and a distance (d) (from the origin). I would like to transform it into a new system.
The long way is like this:
1) multiply distance (d) with normal (n) resulting in a a vector (p)
2) rotate (R) and translate (v) the vector (p) to get (p')
3) normalize (p') to get the normal
4) use another algorith...
I am developing a flash application required me to have a rotational sprite object cycling around the 3D space. I saw a MovieClip has a z-index that can be used as z coordinates in 3d space but couldn't find it in sprite object.
How to I get around with that.
...
Hi,
I'm a beginner to the iPhone development. I need some example source code or idea about moving
3D objects in iPhone gaming application.
Thanks
Khushi
...
I'll apologize in advance in case this is obvious; I've been unable to find the right terms to put into Google.
What I want to do is to find a bounding volume (AABB is good enough) for an arbitrary parametric range over a trimmed NURBS surface. For instance, (u,v) between (0.1,0.2) and (0.4,0.6).
EDIT: If it helps, it would be fine f...
I wanted to write a simple 3d image rotating around the y-axis as the Image carousel. I can place all the photo around the axis but I can't get the main image facing towards the screen. I mean the z-axis isn't pointing towards the screen. Instead, the z-axis is towards the top left corner.
How do i make the z-axis pointing perpendicula...
I want to make a 2D game in C++ using the Irrlicht engine. In this game, you will control a tiny ship in a cave of some sort. This cave will be created automatically (the game will have random levels) and will look like this:
Suppose I already have the the points of the polygon of the inside of the cave (the white part). How should I ...
Hi,
would you sent me some links that has some code for 3d games ??also is there special kind of library for coding such a game (I use java language and netbeans environment)thanks
...
I've spent a decent amount of time trying to hunt down a simple way of doing this - ideally, a magical library exists out there somewhere that will take my set of 3D data points and return 2 points on the best fit line using either orthogonal regression or least squares and also return the error of the fitted line. Does such a thing exi...
I am working on a piece of code where I need to deal with uvs (2D texture coordinates) that are not necessarily in the 0 to 1 range. As an example, sometimes I will get a uv with a u component that is 1.2. In order to handle this I am implementing a wrapping which causes tiling by doing the following:
u -= floor(u)
v -= floor(v)
Doing...
Hi
I have found some code snippet in the internet. But it is missing some classes. Where can I get the missing classes?
These are the errors I get:
package com.sun.j3d.utils.universe.SimpleUniverse doesn't exist
package com.sun.j3d.utils.geometry.ColorCube doesn't exist
package javax.media.j3d.BranchGroup doesn't exist.
Here is the ...
Hi
I have found some code about 3d game but really I can not get why it throws such an exception please help me thanks
Exception in thread "main" com.sun.j3d.utils.image.ImageException: `javax.imageio.IIOException: Can't read input file!`
at com.sun.j3d.utils.image.TextureLoader$1.run(TextureLoader.java:344)
at java.security.Acc...
Hi,
I am currently working on some raycasting in GLSL which works fine. Anyways I want to go from orthogonal projection to perspective projection now but I am not sure how to properly do so.
Are there any good links on how to use a projection Matrix with raycasting?
I am not even sure what I have to apply the matrix to (propably to the...
I am trying to draw a textured cube using just 8 vertices and one DrawIndexedPrimitives call. Is this even possible?
I am having problems with the UV co-ordinates. I am finding it impossible to come up with suitable UV values which will work for all faces of the cube.
Take the following numbering as an example:
UV is set to (0, 0) ...
hi
I have found a code in the internet but really I don't know that for what it throws these exceptions,please help me !really I need your help thanks.
run:
java.lang.UnsupportedOperationException: No AudioDevice specified
at com.sun.j3d.utils.universe.Viewer.createAudioDevice(Viewer.java:986)
at javaapplication17.WrapSh...
I'm in the process of developing a visualization engine for the company I work for. We create decals for the outside of aircraft. As such we would like to be able to visualize the our decals on the aircraft that we support.
So here's the problem: in real life, if I were applying the decals to the outside of an aircraft, I pay pick a an...
Hi
this is my code that you can run it also but you can across a tree I don't want it.think that there is a wall instead of a tree,I don't want the man face the wall across it.would you help me?thanks
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.GraphicsConfiguration;
import com.sun...
Hi
as we know that we can use netbeans for creating swing codes (with drag and drop the code for each part of swing will be written automatically)
Is there any software that help us write java 3d code without writing ?
thanks
...
Hi
as we know ,we can add one icon to the button
jButton1.setIcon(Icon c);
can we add a rotating image to the button?(text 3d)
if yes,please help me with a simple code.thanks
...