Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (686)
Games in Android Showcase (198)
games submitted by our members
Games in WIP (758)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 2 [3] 4 5 ... 10
 21 
 on: 2016-08-24 20:12:03 
Started by KudoDEV - Last post by KudoDEV
Assuming quatf to be a quaternion in floats, how will you add a vector to it? I think quaternions are only used for rotations and not translations or scalings.

Typically in physics engines you have a vec3 for angular velocity. This gets scaled by the step delta and added to the rotation quatf.

 22 
 on: 2016-08-24 19:05:56 
Started by BurntPizza - Last post by SHC
Got a 3D low-poly character with an armature! Built it in 20 minutes initially, but it took 3 days for the weights to be properly applied.


 23 
 on: 2016-08-24 19:04:36 
Started by philjord - Last post by Icecore
Gigantic Work.
I want help a little with optimization..

But why only I, We all can ^^,
Find what lagging the most, separate it from engine - and create thread here
we all try hard to find solution how improve it Wink

(“separate it from engine” - I think full engine source code not ready be revealed for public)

P.s optimization - Except external libraries like Jbullet and Java3D Tongue
PP.S Sorry I Over excited about all this
(because my Pc can’t run fallout 4 and you run it on Adroid XD)
this optimization on practice can be no so easy as it looks for me now.
At least we can try)

up:
Do you use this?
ElderScrollsExplorer/shaders/land.frag
It scares me)
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
void main()
{
    vec3 ct,cf;
    vec4 texel;
  //  float intensity;
  //  intensity = max(dot(lightDir,normalize(normal)),0.0);
 
   // cf = intensity * (gl_FrontMaterial.diffuse).rgb +
   //               gl_FrontMaterial.ambient.rgb;  
   cf = (gl_FrontMaterial.diffuse.rgb +
                  gl_FrontMaterial.ambient.rgb)/2.0;  
                     
    texel = texture2D(tex,gl_TexCoord[0].st);
    ct = texel.rgb;
    //alpha is material only
    gl_FragColor = vec4(ct * cf, gl_Color.a);
}

as i understand diffuse and ambient can be pre mixed together with texture and save to file
no need do it in shader directly
- if it used really for all lands this shader can easily split FPS for half or even more

even if ambient dynamically changed in game
- it can be baked on every change in real time to texture and use that texture without mixin in shader directly

gl_FragColor = vec4(ct * cf, gl_Color.a)

external gl_Color.a Why? for debug? i don't remeber game mechanics with custom walls transperancy Wink

 24 
 on: 2016-08-24 19:02:21 
Started by Archive - Last post by Archive
1  
(c1 & 0xfefeff) + (c2 & 0xfefeff) + (c3 & 0xfefeff) + (c4 & 0xfefeff);


While working on fast bilinear filtering, I found that this adds up 4 colors without checking for overflow. It works perfectly with bilinear texture filtering because overflow shouldn't occur anyways.

(there's error in the blue, i'll edit this once i figure it out)

EDIT:

fixed version:
1  
2  
int sum = (c1 & 0xfefeff) + (c2 & 0xfefeff) + (c3 & 0xfefeff) + (c4 & 0xfefeff);
return sum | (-(sum & 0x100) >>> 24)


If you can simplify this more, please share haha

 25 
 on: 2016-08-24 18:59:49 
Started by Archive - Last post by Archive
Why is memory such a constraint?
Just for memory locality. I'd rather have the texture mapper point to one area in memory rather than a bunch of different areas haha.
By the way, I implemented your thing (without dithering) with a 256*64 color table Smiley. I ended up using a master palette and the results are surprisingly not that bad.



Up next is to do gamma correction Smiley Thank you so much Riven!

 26 
 on: 2016-08-24 18:43:46 
Started by Archive - Last post by Riven
Why is memory such a constraint?

 27 
 on: 2016-08-24 17:16:02 
Started by philjord - Last post by EgonOlsen
Nice work so far. The VM on Android has come a long way. I think it's actually quite good nowadays, even more because Dalvik is a thing of the past since Android 5. The current runtime is ART and it uses AOT compilation on Android 5 and 6 and a mix between JIT and AOT on Android 7.

 28 
 on: 2016-08-24 16:17:22 
Started by leSpace - Last post by thedanisaur
Hopefully I didn't miss something but, for what it's worth, assuming solid geometry, each point must have exactly two line segments that are edges. Once you've found a single edge you can find all other edges.

 29 
 on: 2016-08-24 16:15:00 
Started by philjord - Last post by philjord
Thanks for the support.

Legally the OpenMW guys have been given the go ahead from Matt Grandstaff at Bethesda, just so long as their engine is cross platform.
Mine's pure java and you don't get any more cross platform than Java.

I would add that Android's Dalvik JVM is unbelievable slow, it run comparably to Oracle's Hotspot with the JIT turned off.

 30 
 on: 2016-08-24 14:51:30 
Started by philjord - Last post by Ecumene
OP, you're a damn genius.

For anyone worried about legal stuff, I was too.
Quote
Call of Morrowind is a game engine written completely from scratch by a single developer, it is a cross platform game engine designed to work with the game assets of Morrowind by Bethesda Game Studios (2002).

Pages: 1 2 [3] 4 5 ... 10
 
roseslayer (419 views)
2016-08-06 11:43:29

roseslayer (380 views)
2016-08-06 09:43:11

xTheGamerCodes (457 views)
2016-08-04 15:40:59

xTheGamerCodes (451 views)
2016-08-04 15:40:24

orrenravid (801 views)
2016-07-16 03:57:23

theagentd (876 views)
2016-07-11 14:28:54

Hydroque (972 views)
2016-07-06 05:56:57

Hydroque (993 views)
2016-07-03 08:52:54

GrandCastle (805 views)
2016-07-01 09:13:47

GrandCastle (637 views)
2016-07-01 09:09:45
Rendering resources
by Roquen
2016-08-08 05:55:21

Rendering resources
by Roquen
2016-08-08 05:52:42

Rendering resources
by Roquen
2016-08-08 05:50:38

Rendering resources
by Roquen
2016-08-08 05:49:53

Rendering resources
by Roquen
2016-08-08 05:32:39

Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42
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!