Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (744)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (825)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 173 174 [175] 176 177 ... 194
  ignore  |  Print  
  What I did today  (Read 2100904 times)
0 Members and 2 Guests are viewing this topic.
Offline theagentd
« Reply #5220 - Posted 2017-01-28 19:15:10 »

I present to you a cube made with Vulkan.



( made with Unity 5.6 beta  Roll Eyes )
Cheating! Here I am still trying to get a solid swapchain system working...

Myomyomyo.
Offline J0
« Reply #5221 - Posted 2017-01-28 19:26:53 »

What's the point of Vulkan if it really is that hard to get anything out of it?

My Games Programming tutor mentioned some 4th year students were making their project using Vulkan

Offline SHC
« Reply #5222 - Posted 2017-01-28 19:44:41 »

Just got an idea to generate a polygon from an image, and started to code it out. There are a few imperfections, but it is looking out nice!

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
Polygon polygon = new Polygon();

List<Vector2> vertices = new ArrayList<>();
Color pixelOut = Color.REUSABLE_STACK.pop();

// Start scanning the image from left to right, and then from top to bottom
for (int y = 0; y < image.getHeight(); y++)
{
    boolean found = false;

    for (int x = 0; x < image.getWidth(); x++)
    {
        image.getPixel(x, y, pixelOut);

        // Add the first non-transparent pixel
        if (!found && pixelOut.a != 0)
        {
            vertices.add(new Vector2(x, y));
            found = true;
        }
        // Add the last non-transparent pixel
        else if (found && pixelOut.a == 0)
        {
            vertices.add(new Vector2(x - 1, y));
            found = false;
        }
    }
}

// We got the vertices that surround the image, but they are in scanned order.
// Sort them into clock-wise order
Vector2 imgCenter = Vector2.REUSABLE_STACK.pop().set(image.getWidth() / 2f, image.getHeight() / 2f);
Collections.sort(vertices, (v1, v2) -> (int) (v1.angle(imgCenter)) - (int) (v2.angle(imgCenter)));

And it looks like this in action!



Looking cool! This is very inefficient however, generated 880 vertices for this simple tree image. I'm now going to try creating a convex hull over this concave polygon.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline theagentd
« Reply #5223 - Posted 2017-01-28 20:46:17 »

What's the point of Vulkan if it really is that hard to get anything out of it?

My Games Programming tutor mentioned some 4th year students were making their project using Vulkan
It's not hard to get "anything" out of it. I already have gotten *something* out of it. The reason I'm stuck is because I'm trying to design a swapchain manager that works with a dedicated GLFW thread and dedicated Vulkan thread. The swapchain feature of Vulkan is actually really powerful. In OpenGL you just have the default framebuffer (FBO 0) which you can bind to render to the main screen. This framebuffer is in turn backed by (usually) 2-3 different images to achieve standard double/triple buffering, but these images are hidden and can only be rendered to.

In Vulkan, you create a swapchain which in turn creates the images for you, but the key here is that you actually get access to the actual images. You can use them as compute shader write-only textures, write to them from the CPU (nice for software rendering/emulation!), copy to and from them, even use them as textures if you're feeling nuts. If you want to render to them, you need to bind them to a framebuffer manually. The cool thing about this is that we can even gain a bit of extra performance here by being able to exactly control what happens with the images.

Some hardware requires images to be converted to specific layouts for different usages. They may use different layouts for render targets, for textures and for presenting to the screen. In OpenGL, the driver has to guess what you're trying to do and do these layout transitions implicitly. In Vulkan, you just tell it exactly what to do, which means that you can save a lot of work there. For example, after presenting an image you can skip the layout transition if you know you'll always clear/overwrite the old contents. Also, with the fancy render pass system in Vulkan, this means that you can include the copy to the screen as a subpass, which can help improve performance, especially on mobile/tiled GPUs.

Myomyomyo.
Offline basil_

« JGO Bitwise Duke »


Medals: 418
Exp: 13 years



« Reply #5224 - Posted 2017-01-28 22:01:37 »

mysterious fbo zero. like texture zero, what the hell?
Offline Ecumene

JGO Kernel


Medals: 196
Projects: 4
Exp: 8 years


I did not hit her! I did not!


« Reply #5225 - Posted 2017-01-30 20:50:36 »



Some progress on my multiplayer game!

4 Clients connected via kryonet
- Each client has physics object in the server's Jbullet world (and its own)
- All clients have their own dynamics worlds
- All physics objects are instanced by the server to the client using UUIDs generates server side
- If the client finds a new UUID in the batch, it constructs a new container for that info which acts as an address to update it later
- Player input is sent to the server using 2 bytes for keyboard input (right, left..) rotation is sent in a quaternion of 4 shorts (tracking it server side wouldn't make sense Grin)
- Teacup is constructed using an OBJ model, and its physics model is made using triangles (Its pretty slow to construct but ok when its ran)

I tested this over the internet with a friend of mine and it works very well too

Offline ags1

JGO Kernel


Medals: 356
Projects: 7


Make code not war!


« Reply #5226 - Posted 2017-01-30 22:18:34 »

Registered my new website: beyondproxima.com.

Offline Aalhex
« Reply #5227 - Posted 2017-01-31 20:07:10 »

Signed up to JGO... again. I lost all of my credentials as pretty usual. This time I’ve actually taken the time to write everything down nicely on a good old post-it!

I’ve been here before. It feels good to recognize almost everybody here with the exception of nobody recognizing me! Appreciation given to anyone who can figure out who I really am. Cool

It’s probably not too easy of a task considering I never got to be one of the cool kids. Sad But things are bound to change—you shall all obey! ... some day

Oh—and I’ve listened to Cat Stevens a whole lot whilst game devv... (am I missing a v?) ...vving!

It is I, Alexander from the Junivörs.
Offline J0
« Reply #5228 - Posted 2017-01-31 21:49:25 »

Are you Alexander from the Junivörs.

Offline FabulousFellini
« Reply #5229 - Posted 2017-01-31 21:53:08 »

Are you Alexander from the Junivörs.

I'll bet on that.

-FabulousFellini
www.fabulousfellini.com
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Coldstream24

JGO Ninja


Medals: 81
Projects: 1
Exp: 4 years


You can fill that void inside with programming, but you'll never return a value.


« Reply #5230 - Posted 2017-02-01 05:03:01 »

I took a break from developing my game engine and I finished a song I've been working on for a while Smiley
https://soundcloud.com/coldstream24/dreams-of-empty-skies

Do any of you produce music?

My website: http://www.onedropgames.com/
My soundcloud: http://www.soundcloud.com/coldstream24
Creator of the Morningside Engine, co-founder of Onedrop Games.
Offline Archive
« Reply #5231 - Posted 2017-02-01 06:35:17 »

I took a break from developing my game engine and I finished a song I've been working on for a while Smiley
https://soundcloud.com/coldstream24/dreams-of-empty-skies

Do any of you produce music?
Yeah I do but I don't put them on the internet

Offline philfrei
« Reply #5232 - Posted 2017-02-01 08:10:56 »

I’ve been here before. It feels good to recognize almost everybody here with the exception of nobody recognizing me! Appreciation given to anyone who can figure out who I really am. Cool

My guesses are as follows:
97% confidence: Icecore (clues: Swedish connection, lots of emoticons, Icecore has not posted since Nov or so)
2% confidence: Huh
1% confidence: Notch impersonating Icecore.

Quote
Do any of you produce music?
Yes. But lately I've gotten more interested in using Java to generate music.
Nice cue, btw.

music and music apps: http://adonax.com
Offline cylab

JGO Kernel


Medals: 174



« Reply #5233 - Posted 2017-02-01 08:35:37 »

I took a break from developing my game engine and I finished a song I've been working on for a while Smiley
https://soundcloud.com/coldstream24/dreams-of-empty-skies

Do any of you produce music?
Yes, was doing some Renoise stuff (Tracker) in the past, but nothing public. Then bought a Novation Circuit to jam with my friends (https://youtu.be/5MhOYv-ymYU) and recently bought myself a present in form of an Ableton Push 2.

Mathias - I Know What [you] Did Last Summer!
Offline Aalhex
« Reply #5234 - Posted 2017-02-01 15:58:32 »

Quote from: philfrei
2% confidence: Huh

That right there’s definitely me! Pointing

It is I, Alexander from the Junivörs.
Offline basil_

« JGO Bitwise Duke »


Medals: 418
Exp: 13 years



« Reply #5235 - Posted 2017-02-01 18:24:35 »

i had a twist on PBR + rendering to cubemaps to keep the background in sync.

Offline orange451

JGO Kernel


Medals: 347
Projects: 6
Exp: 6 years


Your face. Your ass. What's the difference?


« Reply #5236 - Posted 2017-02-01 23:20:33 »

@basil_

Where did that model come from? I want to use it to run some rendering tests Smiley

First Recon. A java made online first person shooter!
Offline theagentd
« Reply #5237 - Posted 2017-02-01 23:31:35 »

i had a twist on PBR + rendering to cubemaps to keep the background in sync.


Is that image-based lighting or just plain cube map reflections? I'd love if you logged onto Skype some time too; got a few things to talk with you about. =P

Myomyomyo.
Offline philfrei
« Reply #5238 - Posted 2017-02-01 23:33:58 »

..whups..

music and music apps: http://adonax.com
Offline basil_

« JGO Bitwise Duke »


Medals: 418
Exp: 13 years



« Reply #5239 - Posted 2017-02-01 23:48:30 »

@orange : i think i found on archive3d.net.

@agent : skype right! just a tiny bit IBL, it is highly metallic so it doesn't show much.
Offline Coldstream24

JGO Ninja


Medals: 81
Projects: 1
Exp: 4 years


You can fill that void inside with programming, but you'll never return a value.


« Reply #5240 - Posted 2017-02-02 00:32:33 »

Nice cue, btw.
I don't follow haha, but it's probably my brain not working again.

My website: http://www.onedropgames.com/
My soundcloud: http://www.soundcloud.com/coldstream24
Creator of the Morningside Engine, co-founder of Onedrop Games.
Offline philfrei
« Reply #5241 - Posted 2017-02-02 01:17:59 »


Maybe I should have said "nice song" since that is what you called your new musical piece. I tend to think of songs as having singing. I just meant "by the way" for the btw.

music and music apps: http://adonax.com
Offline orange451

JGO Kernel


Medals: 347
Projects: 6
Exp: 6 years


Your face. Your ass. What's the difference?


« Reply #5242 - Posted 2017-02-02 05:51:07 »

Thanks basil Smiley

First Recon. A java made online first person shooter!
Offline SkyAphid
« Reply #5243 - Posted 2017-02-02 13:21:04 »



This is what I've been up to. Getting the poses right is pretty difficult because the robot isn't entirely anatomically human. That said, it's super satisfying to animate what's intended to be a 300 foot tall, 1500 ton robot to perform boxing moves.

it just werks
Offline Opiop
« Reply #5244 - Posted 2017-02-02 14:43:56 »

I took a break from developing my game engine and I finished a song I've been working on for a while Smiley
https://soundcloud.com/coldstream24/dreams-of-empty-skies

Do any of you produce music?
Yes sir! I'm in a band (As Time Fades). I enjoyed your track by the way, this is the kind of music I love programming to at work. It's so dreamy/floaty. I like it!
Offline FabulousFellini
« Reply #5245 - Posted 2017-02-02 15:53:16 »

I took a break from developing my game engine and I finished a song I've been working on for a while Smiley
https://soundcloud.com/coldstream24/dreams-of-empty-skies

Do any of you produce music?

I used to work in a studio full time as an engineer/producer.  And I've played in bands for 15 years and produced/engineered/mixed all our albums.  I'm the most happy with this album: https://play.spotify.com/album/0ygN01XurJXl5sxLEb7VAR

Edit:  I sing tracks 4 and 7.

-FabulousFellini
www.fabulousfellini.com
Offline FabulousFellini
« Reply #5246 - Posted 2017-02-02 19:51:28 »

I started learning LibGDX.  Please bare with me while I ask dumb questions that are obvious to everyone here except me Smiley

-FabulousFellini
www.fabulousfellini.com
Offline Archive
« Reply #5247 - Posted 2017-02-03 07:16:49 »

Rendered this using circles at the vertices instead of filling the polygons. Has a cool aesthetic pleasure but is slower to render than just filling the polygons.

Offline philfrei
« Reply #5248 - Posted 2017-02-03 07:46:37 »

Turned 60. Shocked

music and music apps: http://adonax.com
Offline matt_p
« Reply #5249 - Posted 2017-02-03 08:29:32 »

@philfrei
Congratulations! Achievement unlocked!


@topic
Released new bugs - as always... If I deploy a new version of my project to my page, I find some serious bugs already on the next try and than I have to release an a-Version(or sometimes b and c :O ) - well, maybe I should do better tests...
Pages: 1 ... 173 174 [175] 176 177 ... 194
  ignore  |  Print  
 
 

 
Ecumene (150 views)
2017-09-30 02:57:34

theagentd (225 views)
2017-09-26 18:23:31

cybrmynd (304 views)
2017-08-02 12:28:51

cybrmynd (291 views)
2017-08-02 12:19:43

cybrmynd (300 views)
2017-08-02 12:18:09

Sralse (292 views)
2017-07-25 17:13:48

Archive (980 views)
2017-04-27 17:45:51

buddyBro (1106 views)
2017-04-05 03:38:00

CopyableCougar4 (1685 views)
2017-03-24 15:39:42

theagentd (1433 views)
2017-03-24 15:32:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05
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!