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.


Topics - C3R14L.K1L4

Pages: [1]
1
Support / Nearest Neighbor filtering (OpenGL)
« on: January 11, 2016, 02:14:13 am »
Greetings,

I'm doing an oldskool platformer and I wish to use Nearest Neighbor filtering with the textures. How can I set this up?

Best regards,
CK

2
Projects / Goal Game Simulator
« on: February 25, 2009, 04:10:25 pm »
Hello there,

I've finished my AI's project and delivered it to the teacher :P
As it uses this wonderful API, if anyone wants to check go to this link:

http://student.dei.uc.pt/~jcgonc/productions.htm
Its on the section 'Goal Game Simulation'.

Keyboard keys are the usual ones from the FPS / simulator games.

3
Bugs / Empty properties exception on Wavefront's material loading
« on: February 06, 2009, 02:42:17 am »
When I load a material description where it's last material definition has empty properties, like the following example:

Code: [Select]
newmtl Explorer_Default
Ka 0.117647 0.117647 0.117647
Kd 0.752941 0.752941 0.752941
Ks 0.752941 0.752941 0.752941
illum 2
Ns 8
map_Kd
map_bump
bump
map_opacity
map_d
refl
map_kS
map_kA
map_Ns

I get this error on jPCT:

Code: [Select]
File models\bzz_Drunk_transparent.mtl loaded...643 bytes
Processing new material textures_alpha_t1!
Processing new material textures_alpha_l1!
Processing new material Explorer_Default!
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1938)
        at java.lang.String.substring(String.java:1905)
        at com.threed.jpct.Loader.loadOBJ(Unknown Source)
        at com.threed.jpct.Loader.loadOBJ(Unknown Source)
        at CK.IA.Engine.loadObj(Engine.java:465)
        at CK.IA.Engine.loadAndSetupModels(Engine.java:380)
        at CK.IA.Engine.initializeScene(Engine.java:279)
        at CK.IA.Engine.initialize(Engine.java:225)
        at CK.IA.Engine.<init>(Engine.java:64)
        at CK.IA.Engine.main(Engine.java:25)

I don't know which of the:

Code: [Select]
map_Kd
map_bump
bump
map_opacity
map_d
refl
map_kS
map_kA
map_Ns

causes the problem, but if I remove them, leaving only those "tags" with description, the loading goes nice and well. But quite boring to remove when an *.obj has lots of materials...
Only happens at the last material definition, if all the others before also have empty definitions, the loader only "explodes" at the last material.

(This is caused by Deep Exploration, I don't know why, but mine always stores materials with all tags, empty or with parameters.)

4
Support / Overlapping of transparent objects
« on: January 30, 2009, 12:40:26 am »
Hello again,

I'm having some problems using transparency, shown on the following image. As you can see, the skybox is been drawn over the map, even if the sky is quite far. Also some of the map's walls are a little transparent (but not all). My code is configured to only use OpenGL.



Only two of them have the setTransparency(int) set to some value (currently 2) which I've not yet understood it's logic. Those objects are (in the picture) one of the skyboxes (the lowest one) and the map. The same objects have at least one of their textures loaded with alpha information (giving the flag true to the Texture constructor). Finally, I'm not using any kind of sorting information (and collision detection) like octrees and portals (the last one I don't even know how to use).

I've read of Config.glTransparencyMul and glTransparencyOffset but don't know how to apply them here. So, I really need some help here... Is it caused by missing sorting information?

PS: Im my opinion, there's missing some documentation on how to use transparency, portals and more. One solution could be adding a 'User tutorials' section on the forum.

5
Support / Sliding texture coordinates
« on: January 06, 2009, 09:37:52 pm »
Greetings,

I've been using this API for some days ago and I must say it's quite good, and with a very smooth learning curve. However, I'm having some problems while trying to change the texture coordinates of some Object3D.
I'm adding to the world a simple skybox, with clouds tilled on the faces of the cube, and I want to slide the textures (ie, change their coordinates). I've checked PolygonManager but I don't know how to use it. Any help would be appreciated.

Kind regards,
CK

Pages: [1]