Questions tagged [processing]
Processing is an open source programming language and integrated development environment (IDE) built with Java
30 questions
1
vote
1
answer
139
views
How to implement proportional guidance in 2D
I would like to preface this by saying I am not a dedicated game developer.
I am trying to implement proportional navigation in order to create a missile class that receives the target location every ...
0
votes
1
answer
146
views
Box2D & Processing - Collision location randomly assigned to center point
I am working on a particle simulation using Box2D with Processing.
The setup: I generate 4 kinds of particles that exist in equal amounts (for instance 200 in total, 50 each). They are (for now) ...
-1
votes
1
answer
212
views
Mathf.PingPong equivalent in Java
I am making a 3D game with java using the Processing 3 framework. I need the Mathf.PingPong() function from Unity so that I can make a bouncing ball. Unfortunately, ...
0
votes
0
answers
150
views
How to create same paradigm of monobehaviour and processing in C++
Having worked with monobehaviour and processing before, is it possible to create the same paradigm both frameworks use which basically is writing all code in two main functions, start/setup and update/...
1
vote
1
answer
1k
views
Ray Caster - How do I fix fish eye effect on side walls?
I've come here because I can't seem to find out what's wrong with my ray tracer.
I fixed the fish eye effect when looking straight on at walls, but the effect remains when the player is looking at ...
1
vote
1
answer
513
views
Topdown Game Collision Detection
I am working on a simple game with topdown movement, but I am unable to get the collisions to work properly. I know the collision detection itself works, but the constraining of the player is where I ...
1
vote
0
answers
95
views
Building battle ship in processing. How do i connect the ships together and randomize the location of the ships?
ive been working on this side project trying to make a battle ship game from some time now. I have come across a few things I do not know how to do. I was wondering if anyone knew how I could make ...
1
vote
1
answer
192
views
Collision Detection For A Maze/Cave
I have a simple code written in Processing 3.x that I am using to test out the collision detection for a cave/maze.
The code is here: https://github.com/NoahJon3s/New-Journey-The-Game/blob/master/...
1
vote
0
answers
63
views
Slow Processing Sketch
My game runs through a processing sketch. When I export the .jar file from Eclipse, the sketch moves incredibly slow, but it runs at the proper speed in the IDE. Is there a way that I can fix the jar ...
0
votes
0
answers
138
views
Spritesheet Usage
I am working on an RPG game and I am storing most of my textures in separate .png files, but for my sprites I would like to use a sprite sheet. How do you cut and store the sheet into individual ...
0
votes
0
answers
48
views
Find mouse pos in 3D space?
I have a game where there is a set of tiles rotated 45° away from the camera. I want to work out what tile is being hovered over by the mouse, and for that I need to translate the mouse pos on the ...
1
vote
0
answers
55
views
Issues With Buggy Collision Detection
I am working on a small game in Processing 3. Essentialy I have a small open-world game and I wrote up a enemy AI to make the enemies wander aimlessly back and forth around the gameworld, and chase ...
0
votes
1
answer
379
views
Face culling all faces that cannot be seen [duplicate]
I'm working on a simple 3d game using the Processing Java environment. I want to optimise my code so I can draw many many 'objects' (the world is made up of many different shaped objects that live ...
2
votes
1
answer
5k
views
Reading a Binary File in Unity
I am trying to display the first two bytes of a binary file as a test. I have the following code.
...
2
votes
2
answers
515
views
How can I check if the mouse hits a quad in 3d, and where it hits it?
I have a sketch that produces the following:
...
2
votes
2
answers
423
views
How to develop custom Unity graphics?
Processing is a Java library for working with computer graphics, providing methods by which to draw primitive objects, custom meshes, etc., as well as mathematical methods (such as Simple Harmonic ...
0
votes
1
answer
440
views
Why can't I load images in processing.js and let them be dynamic?
I can't easily load images. I can only render an image once unless I put this:
<img src="images/papermario.png" hidden></img> in my html. I also still ...
0
votes
1
answer
60
views
Importing audiofile into Unity3d gets shown after ending playmode
I am working on a game where the user has the possibility to import custom audio tracks that can be listened to during the game.
For this I am making use of System.IO.File.Copy method. This works, ...
2
votes
1
answer
236
views
Unity and arduino processing
This question relates to this link:
https://www.freetronics.com.au/blogs/news/6537043-experimenting-with-unity-processing-and-arduino#.W2-SFs4zbIU
Does anyone have any idea how I would begin doing ...
1
vote
2
answers
3k
views
Snake game made in processing
I have been working on this snake game for a few days, and I have the basics down, but I was wondering if anyone could help me figure out the tail. I need it to follow the body, as it does in the ...
0
votes
1
answer
186
views
Creating terrain
I am working on creating a 2D side-scrolling car game. My problem is generating the terrain. When creating the terrain, I need to have it random and recorded, so I can create collisions at a later ...
1
vote
0
answers
352
views
Rotation of a point around axis using quaternions
I have a simple processing program to rotate a point around arbitrary
axis but it stops after a bit. I'm trying to get full rotation of the
point around the axis.
...
4
votes
1
answer
3k
views
I want to render a texture2d on to the screen in unity, how do I do this?
So I have modified a texture in C# by removing all of its white pixels, now I want to render it on the screen in unity so that later I can use it as a terrain where I can make my sprite walk. So far, ...
0
votes
1
answer
806
views
javascript efficient collision detection [closed]
I have a processing game where I am having serious lag problems with collision detection. I am using the most effective code I can think of however after about 9 levels in The game gets unbearably ...
0
votes
2
answers
263
views
How to make the character cannot pass through other randomly moving objects when they are collided?
As the title above, how can i make my random wallImg solid enough so that my birdImg cannot pass through it from any sides of the wallImg?
Here's the code of Processing's Crappy Bird that i've altered ...
0
votes
1
answer
2k
views
How to make smooth 2-d zooming in Processing
I am making a 2d game with camera zooming using Processing. Currently, my program reduces the size of each block by one. This works very well when there are only a few blocks on-screen, but not when ...
-1
votes
1
answer
209
views
Collision problem JBox2D
I work with Processing and the JBox2D library and wanna code a new Ping Pong game.
But if I move the player to the top border (or lower border), he collide on a wrong position.
The picture shows ...
0
votes
0
answers
158
views
Translate click on screen to point on plane in 3D space
I am creating a 2.5D game with the camera at a slight angle, like so:
The grid is the "playing field," and the positive x, y, and z directions are labelled.
I already know all the details about where ...
3
votes
1
answer
4k
views
Processing - implement a first person camera?
First off, I'm sorry if there are duplicates of this. I did an extensive Google search but was unable to find anything that made sense to me. (I am new to 3D rendering and such.)
I want to make a ...
2
votes
1
answer
852
views
Models not rendering when far away
I am making a game where objects are represented by colored cubes. I have files that mark the location and rotation of the cubes. I've been using Processing's 3D library and the cubes disappear within ...