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 - Melssj5

Pages: 1 ... 43 44 [45] 46 47 ... 49
661
Support / How to set a pivot point on the camera?
« on: November 04, 2005, 02:43:45 am »
Hi, I tried to do it by myself not even loking your way, and it works bad. It only turns the half before returning to the initial point. I am managing the angle on the arc rotation. I left my code here for help.

r=radius
teta=angle
derecha=right

The problem is that between -90 and 90º, it works well, but when it must go up from 90º it returns to -90. Its a trigonometric problem. But I dont know how to do it. I will try rolz way but I really will apreciate a help for this.
Code: [Select]


if (derecha) {
            Camera temp=mundo.getCamera ();
            float x=0;
            float z=0;
            float r;
            float tempx;
            float tempz;
            float teta;
           
            tempx=temp.getPosition ().x;
            tempz=temp.getPosition ().z;
            teta=(float) Math.atan(tempz/tempx);
           
            r=(float) Math.sqrt (tempx*tempx+tempz*tempz+temp.getPosition ().y*temp.getPosition ().y);
           
           
            //System.out.println (""+teta*180/3.14159256);
            x=(float) (r/Math.sqrt(1+Math.pow (Math.tan(teta+0.02), 2)));
            z=(float) (x*Math.tan (teta+0.02));
           
           
            mundo.getCamera ().setPosition (x, temp.getPosition ().y, z);
            mundo.getCamera ().lookAt (new SimpleVector (0, 0, 0));
        }
[/code]

662
Support / Question: Models, lighting, and more.
« on: October 30, 2005, 06:51:20 am »
Hey raven, would you mind give your mac as a gift, my birthday was on tuesday!!!!!!!!!!!

You are making good stuff in low time, ery doog for you, hope to hear about your project soon!

663
News / Version 1.08 has been released!
« on: October 29, 2005, 10:56:03 pm »
I cant run my programas that use opengl with the new API. the same exception.

My program uses a thread to render, on the frame opened with openGl, not using AWTGLCanvas.

664
News / Version 1.08 has been released!
« on: October 29, 2005, 10:40:25 pm »
ok, i COMPILED TEH EXAMPLE ABOVE AND:

 - IT COMPILES WELL BUT DOENT WORK.

THIS IS WHAT I GOT:

Java version is: 1.4.0
-> support for BufferedImage
-> using BufferedImage
Software renderer (legacy mode) initialized
Software renderer disposed
Loading Texture...base.jpg
OpenGL (AWTGLCanvas) renderer initialized
[ Sat Oct 29 15:28:20 GMT-05:00 2005 ] - ERROR: File not found - replacement texture used instead!
Loading Texture...decal.jpg
[ Sat Oct 29 15:28:20 GMT-05:00 2005 ] - ERROR: File not found - replacement texture used instead!
OpenGL (AWTGLCanvas) renderer disposed

TEXTURES ARE NOT FOUND!!!! BECAUSE THEY DOESNT EXIST BUT IN ANYWAY, THE FRAME CLOSES, I WILL USE OTHER TEXTURES TO TEST IT.


OK, I used to textures, the first one was a grass theture and the another one was similar to gold.

I got a plane divided in 4 squares, each one has a diferent texture. and the plane is turning.

665
News / Version 1.08 has been released!
« on: October 29, 2005, 10:20:49 pm »
Exactly the same!!

I downloaded it again, run the example and pressed 1 before switching to opengl and the same exception.

I have a Pentium 4 2.67 Ghz, 256 MB ddr RAM, GForce 4 video of 64MB card.

666
News / Version 1.08 has been released!
« on: October 29, 2005, 09:55:43 pm »
Ok, I will do ir, I will post a reply with the results!

667
News / Version 1.08 has been released!
« on: October 29, 2005, 07:36:54 pm »
C:\Documents and Settings\Gold Oozaru\Escritorio\jpctapi\examples\fps>java  -Dja
va.library.path=..\..\lib\lwjgl-0.97\ -cp ..\..\lib\lwjgl-0.97\lwjgl.jar;..\..\l
ib\jpct\jpct.jar;fps.jar -Xmx128m JPCTDemo width=512 height=384 mipmap zbuffer=1
6 refresh=60
Adding Lightsource: 0
Adding Lightsource: 1
Adding Lightsource: 2
Adding Lightsource: 3
Adding Lightsource: 4
Adding Lightsource: 5
Adding Lightsource: 6
Adding Lightsource: 7
Adding Lightsource: 8
Adding Lightsource: 9
Adding Lightsource: 10
Adding Lightsource: 11
Loading Texture...textures\other\numbers.jpg
Loading Texture...textures\other\envmap.jpg
Loading Texture...textures\ql0.jpg
Loading Texture...textures\ql1.jpg
Loading Texture...textures\ql10.jpg
Loading Texture...textures\ql11.jpg
Loading Texture...textures\ql12.jpg
Loading Texture...textures\ql2.jpg
Loading Texture...textures\ql3.jpg
Loading Texture...textures\ql4.jpg
Loading Texture...textures\ql5.jpg
Loading Texture...textures\ql6.jpg
Loading Texture...textures\ql7.jpg
Loading Texture...textures\ql8.jpg
Loading Texture...textures\ql9.jpg
Loading file 3ds\weapon.3ds
File 3ds\weapon.3ds loaded...5491 bytes
Processing new material Material!
Processing object from 3DS-file: stand001
Object 'stand001_jPCT0' created using 182 polygons and 103 vertices.
Loading file 3ds\ql.3ds
File 3ds\ql.3ds loaded...346811 bytes
Processing new material Material15!
Processing new material Material!
Processing new material Material13!
Processing new material Material12!
Processing new material Material11!
Processing new material Material3!
Processing new material Material9!
Processing new material Material10!
Processing new material Material8!
Processing new material Material1!
Processing new material Material7!
Processing new material Material6!
Processing new material Material5!
Processing new material Material4!
Processing new material Material2!
Processing object from 3DS-file: obj2
Object 'obj2_jPCT1' created using 382 polygons and 288 vertices.
Processing object from 3DS-file: obj8
Object 'obj8_jPCT2' created using 100 polygons and 152 vertices.
Processing object from 3DS-file: obj10
Object 'obj10_jPCT3' created using 28 polygons and 56 vertices.
Processing object from 3DS-file: obj12
Object 'obj12_jPCT4' created using 140 polygons and 136 vertices.
Processing object from 3DS-file: obj14
Object 'obj14_jPCT5' created using 268 polygons and 328 vertices.
Processing object from 3DS-file: obj16
Object 'obj16_jPCT6' created using 688 polygons and 728 vertices.
Processing object from 3DS-file: obj18
Object 'obj18_jPCT7' created using 740 polygons and 904 vertices.
Processing object from 3DS-file: obj20
Object 'obj20_jPCT8' created using 615 polygons and 665 vertices.
Processing object from 3DS-file: obj22
Object 'obj22_jPCT9' created using 40 polygons and 60 vertices.
Processing object from 3DS-file: obj24
Object 'obj24_jPCT10' created using 437 polygons and 515 vertices.
Processing object from 3DS-file: obj26
Object 'obj26_jPCT11' created using 284 polygons and 250 vertices.
Processing object from 3DS-file: obj28
Object 'obj28_jPCT12' created using 372 polygons and 274 vertices.
Processing object from 3DS-file: obj30
Object 'obj30_jPCT13' created using 938 polygons and 1030 vertices.
Processing object from 3DS-file: obj32
Object 'obj32_jPCT14' created using 771 polygons and 756 vertices.
Processing object from 3DS-file: obj34
Object 'obj34_jPCT15' created using 404 polygons and 226 vertices.
Processing object from 3DS-file: obj36
Object 'obj36_jPCT16' created using 765 polygons and 729 vertices.
Processing object from 3DS-file: obj38
Object 'obj38_jPCT17' created using 68 polygons and 136 vertices.
Processing object from 3DS-file: obj40
Object 'obj40_jPCT18' created using 220 polygons and 264 vertices.
Processing object from 3DS-file: obj42
Object 'obj42_jPCT19' created using 32 polygons and 35 vertices.
Processing object from 3DS-file: obj44
Object 'obj44_jPCT20' created using 588 polygons and 707 vertices.
Processing object from 3DS-file: obj46
Object 'obj46_jPCT21' created using 18 polygons and 18 vertices.
Processing object from 3DS-file: obj48
Object 'obj48_jPCT22' created using 250 polygons and 202 vertices.
Processing object from 3DS-file: obj50
Object 'obj50_jPCT23' created using 300 polygons and 342 vertices.
Created 2608 triangle-strips for object49 in 1 pass(es)
Building octree for 8448 triangles!
Octree constructed with 314 nodes / 266 leafs.
Java version is: 1.5.0
-> support for BufferedImage
-> using BufferedImage
Software renderer (legacy mode) initialized
Software renderer disposed
Software renderer (OpenGL mode) initialized
205-230 -> using splitted buffer access!
Current mode:512 x 384 x 32 @60Hz
OpenGL renderer initialized
Software renderer disposed
Exception in thread "main" org.lwjgl.opengl.OpenGLException: Invalid operation (
1282)
        at org.lwjgl.opengl.Util.checkGLError(Util.java:56)
        at org.lwjgl.opengl.Display.update(Display.java:549)
        at com.threed.jpct.GLRenderer.execute(Unknown Source)
        at com.threed.jpct.FrameBuffer.display(Unknown Source)
        at com.threed.jpct.FrameBuffer.display(Unknown Source)
        at com.threed.jpct.FrameBuffer.displayGLOnly(Unknown Source)
        at JPCTDemo.display(Unknown Source)
        at JPCTDemo.gameLoop(Unknown Source)
        at JPCTDemo.<init>(Unknown Source)
        at JPCTDemo.main(Unknown Source)

668
News / Version 1.08 has been released!
« on: October 29, 2005, 08:59:09 am »
Hi, I just downloaded it, but when I run the examples and tries to switch to the opengl render, then i got an exception and the program crashes.

669
Bugs / Geforce 4 and opengl
« on: October 29, 2005, 07:52:22 am »
Hi, I recently formated my PC, and I downloaded the most recent drivers for my MSI GForce 4 MX 440 Starforce and I notices that when rendering with opengl it takes almost 2 seconds for each thread iteration, it was awful, at first I thought that was my fault in the code, but when running the fps example it happened again.

I know that jpct offers opengl rendser using lwjgl, and I am not sure if you are able to fix this, but I may to tell that the most recent driver for all GForce and tnt cards are not well suported.

I dont know about GForce FX and Geforce 6 series.

670
Support / How to improve the textures!
« on: October 29, 2005, 07:32:46 am »
Hi, I used some textures I amde using 3ds max 6.0 and when using thwe opengl render they look fine, but when rendering by software it just a mess.

I know that software renders  with 24 bits per pixel on theur textures, but I tried to save them with less colors and I am having the same results.

It would be very nice to have a seccion with some free textures and models because the model I found on 3dcafe dont work and the textures I make are awfull when rendering.

671
Feedback / Another link of jpct
« on: October 27, 2005, 05:49:59 am »
Hey Egon, check this out:

http://descargas.terra.es/informacion_extendida.phtml?n_id=12649&plat=1

Look, the link inside the page that references another web page as the original.

672
Support / JPCT on MacOS X - Beginner help
« on: October 27, 2005, 05:47:19 am »
Hey Egon, if you want to try a MAC OS X system, try Pear PC, its a very small virtual machine that allows you to install MAC OSX over windows.

673
Support / How to set a pivot point on the camera?
« on: October 22, 2005, 08:01:19 pm »
Well, the Subject says all. I want to set a pivot point to the camera, I want to move the camera on cirlces with the centrer placed on another place, like moving on the perimeter of a cirlce. How can I do that.

674
Projects / ¿how much pleople still using jpct?
« on: October 22, 2005, 03:49:26 am »
I post this topic because I noticed that the forums is getting lonely. I am doing a web page about development of 3D aplications and games, there are some toher stuff there. Right now only the forums are ready and I mentioned this engine and some features about it. I also show the engine to som friends and they liked it, but they got bored when not achieving on their projects.

I remeber when I just discovered this engine on google,I entered and I found that this forums comunity was nice, nowaday almost nobody cames here.

I think there is not enought publicity of this engine, maybe if distributing some cool stuff made with it!!!

There should be a seccion of projects in wich you can upload som images of your games.

675
Projects / ¿how much pleople still using jpct?
« on: October 20, 2005, 09:39:53 pm »
I have noticed that there are few new posts on the forums, so I wonder how much people is still using jpct?

Pages: 1 ... 43 44 [45] 46 47 ... 49