Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  CMEngine - a from scratch, modern GL 3d engine  (Read 1069 times)
0 Members and 1 Guest are viewing this topic.
Offline cebarks

Senior Newbie


Projects: 1
Exp: 4 years


Wannabe Software Engineer


« Posted 2014-07-29 20:00:01 »

Just wanted to share a recent project that a friend and I have been working on! It's a 3D engine that's been written from scratch, that we are trying to use modern OpenGL to render with. Our plan is to eventually make a game off of this. Please lemme know what you think!  Cheesy It's very basic right now as were just trying to get the base of it done. More will come!


(Like i said, very basic)

https://github.com/cebarks/CMEngine/
Offline Mike

JGO Wizard


Medals: 76
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #1 - Posted 2014-07-29 20:02:15 »

Any kind of screenshot would help a whole lot with providing feedback, either of how it would look inside a game, or the tools available to create a game Smiley

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline cebarks

Senior Newbie


Projects: 1
Exp: 4 years


Wannabe Software Engineer


« Reply #2 - Posted 2014-07-29 20:06:43 »

I added a screenshot to the original post, like I sad, it's very basic at this point!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline tkausl

Junior Member


Medals: 3
Exp: 5 years



« Reply #3 - Posted 2014-07-29 20:13:12 »

Well, i wonder why your basic shader is scaling everything down?!

My English isnt that great. Correct me, if you want, im still learning this Language Smiley
Offline cebarks

Senior Newbie


Projects: 1
Exp: 4 years


Wannabe Software Engineer


« Reply #4 - Posted 2014-07-29 20:15:52 »

Well, i wonder why your basic shader is scaling everything down?!


I'm not sure, it appears my friend was scaling everything down by a factor of 4...
Offline saucymeatman
« Reply #5 - Posted 2014-07-29 21:45:05 »

In Model.java you hardcode a value causing the method "loadModel(location)" to only work if the model is located within "src/main/resources/models"
1  
2  
   public static Model loadModel(String location) throws FileNotFoundException, IOException {
      BufferedReader read = new BufferedReader(new FileReader("src/main/resources/models/" + location));

Offline Danny02
« Reply #6 - Posted 2014-07-29 21:52:22 »

your OBJ loader is ugly not quite perfect:
- storing the face indices as a float vertex3
- doing unnecessary string manipulations (e.g. split)

and not much more to look at

Offline cebarks

Senior Newbie


Projects: 1
Exp: 4 years


Wannabe Software Engineer


« Reply #7 - Posted 2014-07-29 21:59:03 »

In Model.java you hardcode a value causing the method "loadModel(location)" to only work if the model is located within "src/main/resources/models"
1  
2  
   public static Model loadModel(String location) throws FileNotFoundException, IOException {
      BufferedReader read = new BufferedReader(new FileReader("src/main/resources/models/" + location));



Ah ok, good catch! what would be the best approach to fix this?
Offline cebarks

Senior Newbie


Projects: 1
Exp: 4 years


Wannabe Software Engineer


« Reply #8 - Posted 2014-07-29 22:02:51 »

your OBJ loader is ugly not quite perfect:
- storing the face indices as a float vertex3
- doing unnecessary string manipulations (e.g. split)

and not much more to look at

Instead of splitting and then parsing the string like I was doing, how would you parse the floats?
Offline Danny02
« Reply #9 - Posted 2014-07-30 05:56:41 »

instead of doing three times the same split, you could only do one. Or to be even faster (the split operation is a regex match), you could just search for the occurrences of the slash char.

Your OBJ loader is at the moment very, very basic. So be aware that there are many pitfalls, which may trap you.
e.g. I had once the problem that I got OutOfMemory Exceptions for larger models (> 25mb). And the problem was that I created java objects for every little detail of the OBJ format.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cebarks

Senior Newbie


Projects: 1
Exp: 4 years


Wannabe Software Engineer


« Reply #10 - Posted 2014-07-30 07:00:13 »

Alright, I'll give that a try! Thanks Smiley
Pages: [1]
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

BurntPizza (20 views)
2014-09-21 02:42:18

BurntPizza (14 views)
2014-09-21 01:30:30

moogie (14 views)
2014-09-21 00:26:15

UprightPath (25 views)
2014-09-20 20:14:06

BurntPizza (27 views)
2014-09-19 03:14:18

Dwinin (42 views)
2014-09-12 09:08:26

Norakomi (73 views)
2014-09-10 13:57:51

TehJavaDev (96 views)
2014-09-10 06:39:09

Tekkerue (49 views)
2014-09-09 02:24:56

mitcheeb (70 views)
2014-09-08 06:06:29
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!