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 ... 799 800 [801] 802 803 ... 823
12001
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();
?>

12002
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.

12003
Support / Error with webstart
« on: September 14, 2004, 07:45:19 am »
Hmm...this section of the jnlp should fix the problem:
Code: [Select]
<nativelib href="lib/lwjgl-0.8/lwjgl.zip"/>
I don't know why it doesn't in your case. Please post your jnlp-file and try if my attempt works for you: http://www.jpct.net/webstart/demo4.jnlp
And try to empty your webstart-directory using the option webstart provides for this. Sometimes, it simply doesn't reload the jnlp the way it should.

12004
Support / Error with webstart
« on: September 12, 2004, 01:58:24 pm »
All i can offer is the jnlp-file that i made for a small jPCT-webstart-demo. It still uses LWJGL-0.8 but that doesn't matter:

(To load the resources from the JARs, you have to use the InputStream-Loaders...there should be a thread around here that shows this IIRC).

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://www.jpct.net/webstart" href="demo4.jnlp">
<information>
<title>jPCT Webstart-demo - verbose</title>
<vendor>jPCT - http://www.jpct.net</vendor>
<homepage href="http://www.www.jpct.net"/>
<description>jPCT Webstart-demo - verbose</description>
<icon href="icon.gif"/>
<icon kind="splash" href="logo.jpg"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.2+" initial-heap-size="64m" max-heap-size="256m"/>
<jar href="demo.jar"/>
<jar href="resources.jar"/>
<jar href="lib/jpct.jar"/>
</resources>
<resources os="Windows">
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.2+"/>
<jar href="lib/lwjgl-0.8/lwjgl.jar"/>
<nativelib href="lib/lwjgl-0.8/lwjgl.zip"/>
</resources>
<resources os="Linux">
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.2+"/>
<jar href="lib/lwjgl-0.8-linux/lwjgl.jar"/>
<nativelib href="lib/lwjgl-0.8-linux/liblwjgl.zip"/>
</resources>
<application-desc main-class="JPCTDemoWS">
<argument>trilinear</argument>
<argument>16bit</argument>
<argument>verbose</argument>
</application-desc>
</jnlp>



12005
Support / Loading textures problem in a web server context
« on: September 11, 2004, 03:14:44 pm »
An (unsigned) applet can only load resources from its origin, i.e. the server it came from. You usually can't access files on your local harddisc. That given, the behaviour you are getting is a bit strange...i would expect it to work with "textures" and to fail with "c:\....\textures" and not the other way round. It should work if you load the applet from the webserver and the textures too, but then you are having the problem to get the list of files from the server. That's what i tried to solve with my first reply.
Maybe signing the applet is a solution as it gives the applet full access to local (and remote) resources. The JDK contains everything you need to sign an applet. Your certifcate won't be a trusted one this way, but that's not a problem as long as your users are accepting it anyway.

12006
News / LWJGL 0.92 is out!
« on: September 10, 2004, 01:59:02 am »
You can get it here: http://www.lwjgl.org

The current jPCT release (1.02) won't work with it, but the next one will.

12007
Support / Loading textures problem in a web server context
« on: September 09, 2004, 10:10:21 pm »
You can set the codebase by using the codebase-attribute of the applet-tag. However, it's quite difficult to help you because i still don't fully understand the way in which you are accessing the applet. Maybe posting the corresponding html-page and how you call it would help? What exception do you get? Still a security exception or a simple file not found? Is the applet signed?

12008
Support / Loading textures problem in a web server context
« on: September 09, 2004, 03:58:20 pm »
If your applet is in "c:\plopp\applet\" for example and your textures are in "c:\plopp\applet\textures\" you should be able to access them via

Code: [Select]
File dir_texture=new File("textures");

You maybe have to set the codebase in the applet-tag, but i'm not sure.

12009
Support / Loading textures problem in a web server context
« on: September 09, 2004, 03:03:11 pm »
I still don't fully understand your problem. The applet is stored on the webserver, right? And accessed via a browser!? And the textures? Are they local on the users machine or on the webserver too?

12010
Support / Loading textures problem in a web server context
« on: September 09, 2004, 10:27:01 am »
I assume that you want to load the textures from the webserver too!? If so, you somehow have to get the list of (texture-)files on your webserver. One idea that comes into my mind is to write a php-script that collects the file names in a particular directory on the server and let the applet call this script so that it gets the list as response. Now parse this list and load the appropriate files.

12011
Support / help newbie
« on: September 07, 2004, 04:19:54 pm »
Yes, you have to set the classpath so that it includes the jpct.jar (and the lwjgl.jar as well if you want to use OpenGL). This is needed for compiling and executing code that uses jPCT. You can set this temporally using the -cp directive like the example batch-files do or permanently by modifying your classpath-var.

12012
Support / project online? webstart?... how?
« on: September 04, 2004, 07:11:47 pm »
Yes, you have to sign them. Have a look at http://wiki.java.net/bin/view/Games/HowToUseWebstart to see how.

12013
Support / Saving worlds
« on: September 04, 2004, 07:10:32 pm »
Yes, you can serialize a world. It has been done by someone here in the forums. Just do a search for it. About writing the world out to XML: Well, the code to do this is there. but it's not active at the moment. I can add it to the next release if this would help.

12014
Support / Null Pointer in FrameBuffer while running as JApplet
« on: July 26, 2004, 06:54:36 pm »
Looks like as if the Graphics-instance you are using is null. Check this before calling display(Graphics,....) to see if it's the case. There's not much more in display() that could be null.

12015
Support / Two little questions
« on: July 15, 2004, 08:24:08 pm »
The first call to moveCamera() moves the camera down into the middle of the virtual ellipsoid...or in other words: The ellipsoid collision detection for the camera takes the camera as the ellipsoid's center. But in this case, the ellipsoid is virtually below the camera (i.e. the player looks through his eyes, not his belly). To correct this, the camera is moved half way down, then collision detection is performed, then it's moved up again. If you remove the line you mentioned, the camera will be moved down and down and down...half the radius every frame and the ellipsoid collision detection can only avoid collisions but it can't push you out of existing ones reliable. That's the reason why you fall through the floor.
The other problem may be related to model complexity. The visibility list has a fixed size. Try to adjust this size (http://www.jpct.net/doc/com/threed/jpct/Config.html#maxPolysVisible) and see if it helps. You have to do this before instantiating your world.

Hope this helps.

Pages: 1 ... 799 800 [801] 802 803 ... 823