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

Pages: [1] 2 3 ... 16
1
Support / Double-Sided Wireframe
« on: July 15, 2015, 11:28:57 pm »
Hi all,
It's great to see JPCT still active! I was using it back in '08 and glad to see its continued to be updated. So much for the "Java is dead" talk.  ;D

So, I'm doing some wireframe rendering and thought there was a way to get double-sided rendering for a wireframe. That is the wireframe is rendered irrespective of the rotation within the camera's view.

Anyone have suggestions on how to achieve this other than adding triangles twice?

Thanks,
Vance

2
Feedback / Object3D Editor file anywhere?
« on: January 26, 2012, 10:48:46 pm »
Hi all,
I haven't been around in awhile. Nice to see jpct is continuing to be developed! There are quite a few nice looking projects. :)
Awhile back I wrote a program: the "Object3D Editor." http://www.jpct.net/forum2/index.php/topic,1003.msg6185.html#msg6185
I unfortunately lost the software on my own computer in the middle of some cleaning of my files and would like to know if anyone has a copy on their computer. If someone does, I'd love to get a copy.
Thanks,
Vance

3
Projects / Re: Object3D Editor
« on: July 11, 2010, 02:10:44 pm »
I created this Editor a while back when I wanted to give the JPCT community an editor that was more specific to the characteristics of the jpct engine. After finishing the Editor, I soon learned how to use Blender 3D and abandoned further development of this program. I also do not have a copy of the Editor anymore. I have some old versions, but not the one I had finished and posted. Good luck in the 3D programming world pritom!

Egon: If you took the Editor off the Projects page of the main site, I wouldn't be offended.

4
News / Re: Merry Christmas...
« on: December 25, 2009, 02:13:18 pm »
Merry Christmas from me too. ;)

@Paul: It kind of looks like Robbie has his hands already curled in the proper keying position.  ;)

5
Support / Re: terrain detail
« on: December 21, 2009, 03:09:21 pm »
wow, that's beautiful. I love the water.

6
Projects / Re: Ballbox
« on: November 15, 2009, 09:32:51 pm »
Ok, got it to work. The problem was the OpenJDK VM. For some reason, that Java vm creates that sound error. The Sun-vm doesn't do that. Everything works fine.

I really like the feel of the game. It reminds me of a Wii game I played. Also, I don't know if you want this but the average number that is printed out on the console is around 400.

7
Projects / Re: Ballbox
« on: November 15, 2009, 07:25:12 pm »
ok, i'll try that

8
Projects / Re: Ballbox
« on: November 13, 2009, 03:17:03 pm »
Yes, I can get to the other screens just fine. Actually, I can get to the choose levels. The problem is when the instruction screen comes up, and I hit enter again. That's when the game crashes.

Quote
First of all thanks for the feedback!!
I like testing people's stuff when I have the time.  :)

9
Projects / Re: Ballbox
« on: November 12, 2009, 09:24:17 pm »
I tried it out, but I can't get to the game. I hit enter, and it says to choose a level, and I hit enter again. Then the game crashes. Here is the output:

Code: [Select]
jimboy@jimboy-laptop:~/Downloads/Ballbox-Linux$ run
No command 'run' found, did you mean:
 Command 'zrun' from package 'moreutils' (universe)
 Command 'runq' from package 'exim4-daemon-heavy' (main)
 Command 'runq' from package 'sendmail-bin' (universe)
 Command 'runq' from package 'exim4-daemon-light' (main)
 Command 'grun' from package 'grun' (universe)
 Command 'qrun' from package 'torque-client' (multiverse)
 Command 'lrun' from package 'lustre-utils' (universe)
 Command 'rn' from package 'trn' (multiverse)
 Command 'rn' from package 'trn4' (multiverse)
 Command 'rup' from package 'rstat-client' (universe)
 Command 'srun' from package 'slurm-llnl' (universe)
run: command not found
jimboy@jimboy-laptop:~/Downloads/Ballbox-Linux$ ./run.sh
1    [main] INFO  odejava  - Odejava version 0.2.4
Java version is: 1.6.0_0
-> support for BufferedImage
Version helper for 1.5+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
Software renderer disposed
Current mode:800 x 600 x 24 @60Hz
[ Thu Nov 12 15:20:08 EST 2009 ] - WARNING: Number of samples (2) not supported!
Driver is: unknown OpenGL driver on Mesa Project / Software Rasterizer
GL_ARB_texture_env_combine supported and used!
FBO supported and used!
OpenGL renderer initialized (using 4 texture stages)
128994-139073 -> using splitted buffer access!
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
[ Thu Nov 12 15:20:09 EST 2009 ] - ERROR: File 'from InputStream' not found - replacement texture used instead!
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: File 'from InputStream' not found - replacement texture used instead!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: File 'from InputStream' not found - replacement texture used instead!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: File 'from InputStream' not found - replacement texture used instead!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (600)...resizing to a width of 256 pixels!
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (20)...resizing to a width of 256 pixels!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (4)...resizing to a width of 256 pixels!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (4)...resizing to a width of 256 pixels!
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: A texture with the name 'data/backgroundb.jpg' has been declared twice!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (4)...resizing to a width of 256 pixels!
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: A texture with the name 'data/backgroundb.jpg' has been declared twice!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (4)...resizing to a width of 256 pixels!
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: A texture with the name 'data/backgroundb.jpg' has been declared twice!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (4)...resizing to a width of 256 pixels!
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: A texture with the name 'data/backgroundb.jpg' has been declared twice!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (4)...resizing to a width of 256 pixels!
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: A texture with the name 'data/backgroundb.jpg' has been declared twice!
Loading file from InputStream
File from InputStream loaded...1420 bytes
Processing new material 01 - Default!
Texture named CRATE01.JPG added to TextureManager!
Processing object from 3DS-file: Box01
Object 'Box01_jPCT8' created using 12 polygons and 8 vertices.
Exception in thread "main" java.lang.IllegalStateException: Line not open
at org.classpath.icedtea.pulseaudio.PulseAudioClip.stop(PulseAudioClip.java:543)
at game.sounds.xcvbnmsdfghjertyukjhgfd.stopSound(xcvbnmsdfghjertyukjhgfd.java:35)
at game.sounds.zxcvbnmsdfghjkwertyu.stopSound(zxcvbnmsdfghjkwertyu.java:47)
at game.frames.jdbnkjdswf.loop(jdbnkjdswf.java:39)
at game.frames.kjhaskjd.loop(kjhaskjd.java:44)
at game.frames.jkhskjhfwe.input(jkhskjhfwe.java:113)
at game.frames.jkhskjhfwe.loop(jkhskjhfwe.java:80)
at Start.Run.main(Run.java:75)
jimboy@jimboy-laptop:~/Downloads/Ballbox-Linux$

I'm using Ubuntu 9.10 with
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-1ubuntu3)

That may be the problem, I'll try to get the Sun VM to work. I actually thought I was using the Sun VM.
JavaMan,

Oh, and another thing. The main menu didn't work to well for me. Pressing the arrow keys on the keyboard didn't always move the selection up/down sequentially.

I know you're just starting on it. Hope this helps!

10
Support / Re: GUI or swing??? help!!!
« on: October 04, 2009, 08:04:33 pm »
Ok, got it.

I think what you want to look into is the FrameBuffer.blit method. http://www.jpct.net/doc/ I haven't used the method, but I know others have talked about it. I built a test case here:
Code: [Select]
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package version;
import com.threed.jpct.*;
import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.image.BufferedImage;
/**
 *
 * @author vanceman
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)throws Exception {
        // TODO code application logic here

        FrameBuffer buffer = new FrameBuffer(800,600,FrameBuffer.SAMPLINGMODE_NORMAL);
       
        World world = new World();
        Camera cam = world.getCamera();
        cam.moveCamera(cam.CAMERA_MOVEOUT, 5);

        JFrame render_frame = new JFrame("jpct blit test.!!!");
        render_frame.setSize(810,610);
        render_frame.setDefaultCloseOperation(render_frame.EXIT_ON_CLOSE);
        render_frame.setVisible(true);


        JButton button = new JButton("Simple JPCT blit");
        //I don't know how to manually size a JButton, so I do it this way. ;)
        JFrame frame2 = new JFrame();
        frame2.setLayout(new java.awt.GridLayout(1,1));
        frame2.add(button);
        frame2.pack();
        frame2.setVisible(true);

        //Get the image RGB pixel data
        BufferedImage image = new BufferedImage(button.getWidth(),button.getHeight(),BufferedImage.TYPE_INT_RGB);
        button.paint(image.createGraphics());
        int[] data =  image.getRGB(0, 0, image.getWidth(), image.getHeight(), null, 0, button.getWidth());

        //some other stuff so that we see something
        Object3D box = Primitives.getBox(1, 1);
        box.build();
        world.addObject(box);

        //Now the fun stuff.
        while(true){
            buffer.clear(java.awt.Color.BLACK);
            world.renderScene(buffer);
            world.draw(buffer);
            buffer.update();
            buffer.blit(data, image.getWidth(), image.getHeight(), 0, 0, 100, 100, image.getWidth(), image.getHeight(), true);
            buffer.display(render_frame.getGraphics());
            box.rotateY((float)Math.PI/14);
        }
    }

}


11
Support / Re: GUI or swing??? help!!!
« on: October 04, 2009, 03:35:24 pm »
So, you want to put a Swing component on top of jpct? Something like this http://www.jpct.net/forum2/index.php/topic,1338.0.html, only with software:swing.

Or, do you want like 3D Swing objects in a jpct world?

12
Support / Re: GUI or swing??? help!!!
« on: October 04, 2009, 02:38:34 pm »
Swing is a library to create GUIs in Java. Your question is rather unclear.

jpct can paint into any Java component by calling
yourframebuffer.display(java.awt.Graphics);


13
News / Re: Software renderer performance
« on: October 01, 2009, 09:07:04 pm »
Looking awesome! Dang if I didn't have those blasted midterms.  >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(

14
Support / Re: Multithread/Multicore Software Rendering?
« on: September 30, 2009, 01:50:59 am »
Cool dude! I really like how the car slows down when I release the gas. Maybe your previous version was like that, but I really noticed it this time.
Amazing this is in software.  ;D And, great startup time. You could teach Sun a thing or two on the Java user experience.  ;), since they still haven't got it down yet: http://javafx.com/samples/

15
Support / Re: Multithread/Multicore Software Rendering?
« on: September 24, 2009, 04:21:29 am »
Woah, some that is awesome, and it should only get better as Intel and AMD make more core processors!

Pages: [1] 2 3 ... 16