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.


Messages - EgonOlsen

Pages: 1 ... 798 799 [800] 801 802 ... 822
11986
Support / Re: Moving the Mouse
« on: October 28, 2004, 08:17:49 pm »
Quote from: "Mike Nelson"
I just realized that would only really work in fullscreen mode.  otherwise if the user moved the Applet/Application the coordinates for the center would be off.. that could screw things up. . . .
That's no problem at all. You can easily determine where the frame is located on the desktop and adjust your coordinates accordingly. I did that in the latest Paradroid 3D alpha and it works fine (at least on Windows XP and Linux..haven't tried others yet).

11987
Projects / Technopolies
« on: October 21, 2004, 09:25:10 pm »
Looks amazing. I assume that it's turn based? When i'm finished with Paradroid3D (which is still a long way to go...), i may start something similar based on the idea of robosport (anybody remembers that game?).

Edit: I've added a link to this thread on the projects page (http://www.jpct.net/projects.htm). If you've got a public demo up and running, i can change the link to that...

11988
Projects / Egon - Your Projects
« on: October 21, 2004, 09:22:25 pm »
There is not much to share at all. All this stuff is more or less based on the fps-example that comes with the API. That's why the weapon is always the same in these shots. The models are either quake3 maps or some 3ds stuff from the internet, of which i don't know the licenses, so i won't distribute it here. The textures i'm using for testing purposes are from a halflife texture pack, but i really don't know where to download it anymore.

11989
Support / Basics
« on: October 19, 2004, 05:21:44 pm »
Maybe the old terrain example helps. It's not exactly what you want, but at least it should be easier to understand than the car example. Have a look here: http://www.jpct.net/download/TerrainGL.zip

I'm not really sure if it compiles with the latest version of jPCT, but if it doesn't, only minor changes should be required.

11990
Support / Basics
« on: October 17, 2004, 01:52:21 pm »
Yes, there are. Have a look at the Primitives class. To texture the objects  that this class creates (not needed for cube and plane and such as they should already have the correct texture coords assigned), you can use the calcTextureWrapXXX-methods in Object3D.

Hope this helps.

11991
Support / Re: Using the mouse to move the camera
« on: October 16, 2004, 01:00:15 am »
Quote
IF this is still an issue try using the java.awt.Robot class you can move the mouse pointer, and simulate user input.
Neat idea...i remember that i once wrote a small test that moved the mouse and clicked left and right randomly...my desktop looked really crazy after running it for some time.. :wink:

11992
Support / Relationship between Object3D & texture
« on: October 13, 2004, 04:35:56 pm »
That line is a requirement caused by the actual implementation, it's not a conceptual one. In jPCT every object has at least one texture, even if you haven't assigned one. This can either be a default, plain white dummy texture that the texture manager provides or a colored texture that matches the color of your material. This is (as said) implementation specific and it could change without any consequences for the user of the API (even if it most likely won't...), so i think you are save to write that an object may have a texture...but doesn't have to.

11993
Support / Java applet that loads vrml
« on: October 12, 2004, 05:55:34 pm »
I think it depends on what exactly you mean by "load VRML". You may either load just the objects from the file or you may also be interested in animations, events or whatever VRML allows. In the former case, you have to parse the VRML somehow, create the objects from it, load the textures and you are basically done (still a lot of work...). In the second case, you need to write somekind of VRML-layer on top of jPCT...which will be a lot more work IMHO.
However...is it possible: yes. Can jPCT do it "out of the box": no.  Does jPCT includes everything that is needed to write such thing: yes.

Hope this helps.

11994
Support / Re: Applet with HW 3d support
« on: October 01, 2004, 03:58:57 pm »
Quote from: "rolz"
Isn't there a way to do the trick with signed applets ?
According to the LWJGL-guys: no. Personally, i never tried it. But anyway: Even if signing the applet would do the trick, LWJGL will still render into its own window and not into the applet. because it can't render into Java2d components directly. That given, there's no point anymore to use an applet in combination with LWJGL: Java 1.1 can't use LWJGL anyway and everything that can (1.3+), can do webstart too.

11995
News / Version 1.03 has been released!
« on: September 30, 2004, 08:54:37 pm »
Changes are documented here: http://www.jpct.net/changes.html

This version works with the new LWJGL0.92 (http://www.lwjgl.org).

Have fun!

11996
Support / openGL and a browser
« on: September 21, 2004, 05:50:36 pm »
No, the used OpenGL binding (LWJGL) doesn't support that. However, a system that is capable of using OpenGL via LWJGL is also capable of using webstart, which is a good alternative to an applet.

11997
Support / Camera rotation - which way is easiest?
« on: September 15, 2004, 05:00:12 pm »
One way is to place the camera at "somepoint", do the rotation and move the camera backwards. Something like

Code: [Select]
camera.setPosition(somepoint);
camera.rotateCameraY(0.1f);
camera.moveCamera(Camera.CAMERA_MOVEOUT, 20f);
camera.lookAt(somepoint); //Maybe not needed in this case...depends on the application


Another solution would be to create a dummy object that rotates around "somepoint" and set the camera to its position every frame. In this case, the lookAt() is definitely needed.

11998
Support / Loading textures problem in a web server context
« on: September 14, 2004, 07:27:21 pm »
Yes, create a file something.php with the code-snippet as its content. You can place the script wherever you want. Just use the correct path to your textures-dir instead of the ".", i.e. if you place it in a dir called "php" on the same level as "textures", your path will be something like "../textures". You can leave it in the textures-dir anyway...just don't try to load it as a texture... :wink:

You don't have to execute it on your own. Your webserver should if its configured correctly to run php-scripts. Just call it from the applet by loading it like a normal text-file. You can use Loader.loadTextFile(this.getDocumentBase(), "/textures/script.php"); (or wherever its located) for this or write your own method.

11999
Support / Loading textures problem in a web server context
« on: September 14, 2004, 05:06:37 pm »
To rely on this apache-behaviour is a bad idea because it's a matter of its configuration if it shows you the files in a specific directory if no index is present. It's better to let the applet call a php-script on your server that gets you the list of files in simple ASCII-format and parse this one. You can access it via the Loaders getTextFile()-method. The script should look somehow like this little one:

Code: [Select]
<?
header("Content-Type: text/plain");
$d = dir(".");
while($entry = $d->read()){
echo($entry."\n");
}
$d->close();
?>

12000
Support / Error with webstart
« on: September 14, 2004, 03:26:30 pm »
I took your jnlp, splitted the resources-tag into the global and the os-specific part (I don't think that it really matters, but it's a good idea anyway...loading a dll on linux is pointless). Running it, i got a message that the resources are not signed using the same certificate. Try to re-sign your jars and the zip using the same certificate. Maybe that will work.

Pages: 1 ... 798 799 [800] 801 802 ... 822