### 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 - sushobhit

Pages: [1] 2
1
##### Support / Scaling an object (Self Created)
« on: August 11, 2016, 07:10:28 am »

Can anybody plz help with this problem I am stuck with .
I have created a simple cube using
The problem is I DK how to add scaling capability to it .What are the vec calcs to be applied to make it scalable . Plz .

Here is the code :

SimpleVector upperLeftFront=new SimpleVector(-0.8,-0.8f,-1);
SimpleVector upperRightFront=new SimpleVector(0.8,-0.8f,-1);
SimpleVector lowerLeftFront=new SimpleVector(-0.8,0.8f,-1);
SimpleVector lowerRightFront=new SimpleVector(0.8,0.8f,-1);

SimpleVector upperLeftBack = new SimpleVector( -0.8, -0.8, 1);
SimpleVector upperRightBack = new SimpleVector(0.8, -0.8, 1);
SimpleVector lowerLeftBack = new SimpleVector( -0.8, 0.8, 1);
SimpleVector lowerRightBack = new SimpleVector(0.8, 0.8, 1);

SimpleVector upperLeftLeft=new SimpleVector(-1,-0.8,0.8 );
SimpleVector upperRightLeft=new SimpleVector(-1,-0.8,-0.8 );
SimpleVector lowerLeftLeft=new SimpleVector(-1,0.8,0.8 );
SimpleVector lowerRightLeft=new SimpleVector(-1,0.8,-0.8 );

SimpleVector upperLeftRight = new SimpleVector( 1, -0.8, -0.8 );
SimpleVector upperRightRight = new SimpleVector(1, -0.8, 0.8 );
SimpleVector lowerLeftRight = new SimpleVector( 1, 0.8, -0.8 );
SimpleVector lowerRightRight = new SimpleVector(1, 0.8, 0.8 );

SimpleVector upperLeftUp=new SimpleVector(-0.8,-1,0.8 );
SimpleVector upperRightUp=new SimpleVector(0.8,-1,0.8 );
SimpleVector lowerLeftUp=new SimpleVector(-0.8,-1,-0.8 );
SimpleVector lowerRightUp=new SimpleVector(0.8,-1,-0.8 );

SimpleVector upperLeftBottom = new SimpleVector( -0.8, 1, 0.8 );
SimpleVector upperRightBottom = new SimpleVector(0.8, 1, 0.8 );
SimpleVector lowerLeftBottom = new SimpleVector( -0.8, 1, -0.8 );
SimpleVector lowerRightBottom = new SimpleVector(0.8, 1, -0.8 );

Object3D sample = new Object3D(44);

2
##### Support / Cant get my Player to move properly in the World
« on: August 20, 2014, 08:16:24 am »
Hi Friends ,

Please tell me what I am doing wrong here ?
My player's rotation is controlled by Mouse dx
and move forward is done when the UP key is pressed.

Now during the start the first time when I press the UP key the player moves in the desired direction..
But after that when I roatate the player using the mouse and press the Up key it first goes a little in the last Direction
it moved to and then it goes in the right direction.

What changes should I make.

Code: [Select]
` SimpleVector t= box.getZAxis(); t.scalarMul(0.05f); moveRes.add(t); moveRes = box.checkForCollisionEllipsoid(moveRes, ellipsoid, 8); box.translate(moveRes);`
Also I am using a little code just after this in the gameloop for Gravity I hope its not this that is causing the problem....

// finally apply the gravity:
SimpleVector t = new SimpleVector(0, 1, 0);
t = box.checkForCollisionEllipsoid(t, ellipsoidG, 10);
box.translate(t);
The value of ellipsoid as follows :

private SimpleVector ellipsoid = new SimpleVector(2, 2, 2);
private SimpleVector ellipsoidG = new SimpleVector(2, 20, 2);

3
##### Support / Save Texture Back To File
« on: July 08, 2014, 12:29:38 pm »
Hi ,

I am facing difficulty in saving Texture Back to File.

OK.

So , I get the  rendered scene into a Texture.

Now , how can I save this Texture into a bitmap ?

4
« on: May 29, 2014, 08:09:55 am »
Hi ,

I want to implement a shader for a Plane object which shows shadows of all the objects placed on it.
I know about blob shadows but that wont solve the pourpose that i am trying to achieve.

I have a rough sketch in my mind which is something like this : The shader of the plane would be a perpixel light shader
and it illuminates all of the plane falling under light. Now if an object falls in between the position of the light and the position of the object(plane) i.e the vertex if simply does gl_FragColor = shadowcolor * texturecolor; and if there is no object between light & plane it simply does gl_FragColor = textureColor;

All is going fine till now , I am able to get gl_FragColor = textureColor ; but how do i find out if there is an object between light and the plane.... plz help !!!

Do I have to set a uniform for each individual object if yes which matrix I have to pass that contains positions of all vertex of the object.

Very desparate to get this one working cause this is the last thing i have left to learn regarding game programming.....

5
##### Feedback / Web GL
« on: May 28, 2014, 11:27:37 am »
Anyway I could PORT my jpct java code to work on Browser (WEBGL)

6
« on: May 27, 2014, 12:18:51 pm »
Hi Egon ,

I was wondering if you have a decent cell shader code VERTEx + Frag.
Made one myself , got the silhoutte right but am unable to get
a good effect of the texture i.e the textures are not flattening properly

Just by chance if you have one handy it would save me a lot of time.

Regards.

(p.s) - who says jpct is just for small-medium projects , i dont think the same way a reviewed on mobilegameengines
it is as good for large and very large projects.:0

7
##### Support / How to create textures for glshader
« on: May 23, 2014, 01:23:01 pm »
hi egon ,

I would like to learn the shader and while going through the example provided with jpct-ae(hello shader) i came across 3 files one the real image , second normal (bluish version of the same image) and third (a greyish version). An you combine these 3 to make the shader.

?? So if i have a image , how can I get the bluish one and the greyish one so that the texture could be applied?

8
##### Projects / LAZYLION 2D ENGINE
« on: April 19, 2014, 08:02:59 am »

A SET OF CLASSES USING JPCT'S FRAMEBUFFER & BLIT PROCEDURE TO CREATE 2D WORLD ,
OBJECTS , LIGHTS.
OPEN SOURCE 2D ENGINE BASED ON JPCT FORMAT. STILL HAS LOT OF POSSIBILITIES OF IMPROVEMENT

FEATURES :
1.SPRITE ANIMATION
2.COULD ALSO BE USED FOR DESIGNING GAME MENUS
3. 2D GAMES
4. INTERACTIVE PRESENTATIONS
5. LOW ON SYSTEM RESOURCES.

http://speedy.sh/RdH2U/2dengine.zip
http://www.filedropper.com/2dengine

9
##### Support / Lens Flare
« on: April 15, 2014, 07:22:39 am »
Hi egon ,

Can you plz share some sample lens flare images.. I just cant seem to get it right ..

10
##### Projects / SPACECOP 3D v2
« on: April 05, 2014, 12:26:34 pm »
Based on valuable feedbacks improvisions were done

Features :
- Infinite Gameplay
- Challenging Levels (Speed increase after 50000 points & then again after 100000)
- Cool Sounds
- WWW HiScorecard
- Keyboard Support (if can attach a keyboard to your tab/phone just use <- / -> DPAD)
- Android 2.x & >

New Features :
-Smoother Steering [Left-Right]
-Two ships to choose from
-Some memory optimizations [Music conv from MP3 to OGG , Textures Decreased in W*H but Quality Remains Same]

Link # 2 : http://www.apkfiles.com/ [Games >>> Racing]

11
##### Support / RE: Camera Problem
« on: April 05, 2014, 12:17:14 pm »
Hi Egon ,
A week back I posted about the problem I was facing with translation of object along with the camera. Well tried everything
that I can but still now results. So I am attaching the whole program with this post plz help me solve the problem.
I have also attached a README to pinpoint the issue. You can find it in the attached RAR :

ASAP

12
##### Support / Setting the Translate Path for an object
« on: March 30, 2014, 02:39:24 pm »
Hi Friends , WISH ALL A JOYFUL APRIL FOOL's DAY

Actually i was working on a Project regarding  a Prison.
In the prison there are 20 convicts . Out of 20 one is our hero & he has to escape the prison.
Now,
I have set up the Prison enviornment. It has JailCells , 2 Basketball Courts , Medicine Room , Cafe etc etc.

Now ,
The hero is controlled by the user using MotionTouch Events. So that's not a problem.
The problem is the rest of convicts operate by AI(Artificial Intelligence) so they have to be programmed.

Now ,
I want to set a Path for each konvict like :

Path Start (JailCell)     ->                               Path End (BasketBall Court)
So once the path is set set the object should translate itself from jailcell to the basketball court.

One thing is I simply translate(jail) -> translate(BBCourt) but that looks very robotic.

I want it to look humanly
To Egon : Like you have class ParticleManager , any class for PathMaker if YES please share

And also the object should avoid any collisions in between

What should I do , what is the most Optimised way of achieving this...

13
##### Support / Camera Problem
« on: March 29, 2014, 07:08:58 am »
Hi ,

There is a problem coming when i try to translate  my object and move the camera along with it

When both are done simultaiously there is a SHAKE

to be more specific if I do :
{
Object.translate(0,0,2);
Camera.moveCamera(new SimpleVector(0,0,2),1f);
} // There is a shake the engine tends to retaiate the object traslation are seem to shake

Plz tell me how i can smooth the camera movements....

14
##### Support / About Particle Manager
« on: March 25, 2014, 07:26:17 am »
The particle manager I want it to particulate a bigger image (size approx 120x120)

So what should I change in  the Particle class do it seems the particle is UVMapped and the particle you create contains one triangle

15