1. Yesterday
2. ## puting data from my charts

i have to create new post becouse i can´t edit the first the problem is the following I created a graph and now I want to search for data but I can only if i put statict data but i want put with dinamy data I am using angular 7, nodejs and mongodb what i doing wrong how i convert my chart with static data to dinamic data this is my code let TotalSell = function() { var data = { labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], datasets: [{ label: 'My First dataset', fillColor: 'rgba(220,220,220,0.2)', strokeColor: 'rgba(220,220,220,1)', pointColor: 'rgba(220,220,220,1)', pointStrokeColor: '#fff', pointHighlightFill: '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data: [65, 59, 80, 81, 56, 55, 40, 84, 64, 120, 132, 87] }] }; legendTemplate: '<ul class="tc-chart-js-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>' }; var ctx = $("#TotalSell").get(0).getContext("2d"); var chart1 = new Chart(ctx).Line(data, options); var legend = chart1.generateLegend();$('#TotalSellLegend').append(legend); }; <div class="col-sm-6"> <h5 class="over-title margin-bottom-15" style="text-align:center;">Total Sell</h5> <canvas id="TotalSell" class="full-width"></canvas> <div class="margin-top-20"> <div class="inline pull-left"> <div id="TotalSellLegend" class="chart-legend"></div> </div> </div> </div>
3. ## Some Handy Procedural Methods (Placing objects on the ground in circle/grid patterns or individually)

Yeah, you've got me curious on a number of things too. I noticed significant improvements when switching to this method, and not just in GC numbers. So now I'm going to have to compare it to single result and/or layermasked methods. And actually the more I think about it, I have currently over 100 ground objects(tiles), and maybe 2 others that "might" get in the way sometimes.. So it's actually backwards, I think layermasking would help(Me) most of I was looking for something other than the ground.. Hahaha!
4. ## Some Handy Procedural Methods (Placing objects on the ground in circle/grid patterns or individually)

If your scene has 100 objects, your original code will raycast against those 100 objects, looking for hits, copy the results of up to twenty objects that hit the ray, and then you check if those 20 objects are ground objects. By using layermasking, we first filter out the 100 objects for ground objects. (Of which there might be only one!) Then we do a ray test on those objects. So even if there is no GC difference, there should be a order of magnitude difference, especially as object count and complexity goes up. That and we eliminate the tag check as well. I don't recall if the single hit method returns the closest or not, it would be pretty garbage if it didn't, but I wouldn't be surprised if it didn't, or if it generated more GC that the non-alloc. Though I wonder how much it of a difference there is if compiling to their il2cpp code.
5. ## A Functional Impass - Advise me on how to proceed? (C#)

That's why I emphasized that ECS can actually be very simple and minimal while still providing a huge advantage. I think we are thinking and saying mostly the same. I just recommend to give it a try and build the whole gameplay logic in the ECS pattern, since I have made very good experiences with that. At least with my small, simple games where I never had to care about performance or other things where my ultra-low-tech ECS approach might get in the way. P.S.: Dankeschön
6. ## Some Handy Procedural Methods (Placing objects on the ground in circle/grid patterns or individually)

Like I stated at the top, some of these are unoptimized examples using local variables. I reuse non-local arrays to keep from generating excess garbage in production code. I started out using normal raycasts(w/o layermasks of course), it's also important to mention that there's really nothing to mask out in most of my use cases. As the ground object is the only thing that can be collided with. Profiling got me to my present methodologies. I shall now venture to test if layermasking reduces the GC as well. As it stands I don't have any GC of measure. I'm also curious if a single result raycast would guarantee the closest hit as my more resource intensive casts are not straight up and down and often return multiple ground hits that are never in a predictable order... More tests, perhaps the topic of my next blog.
7. ## Some Handy Procedural Methods (Placing objects on the ground in circle/grid patterns or individually)

I mean that you no longer need to check for multiple hits, therefore don't need to use the Physics.Raycast that returns multiple hits, which should theoretically invoke much less garbage collection than yours,since no array is required.
8. ## Where can I find a good game development company for a quality 3d platformer project?

You can likely find some experienced/proven freelancers on this site if you post an entry in the classifieds. Given the phrasing of the question, I'm assuming you have the capital to finance such outsourcing. https://www.gamedev.net/forums/forum/29-hobby-project-classifieds/ Insofar as partnering with a publisher, or development house, we're talking some serious muscle, or capital, and/or the right prototypes/ideas (which you may have, don't know). In such a case I wouldn't be of much help
9. ## Textures, Pixel Alignment And Texture Mistakes. What Am I Doing Wrong?

Yes you are right (copy-paste mistake). For some reason I cant edit the original post so I'm going to post the code here: Fragment Shader #version 330 core out vec4 Color; in vec2 TexCoord; uniform sampler2D diffuse; void main() { Color = texture(diffuse, TexCoord); }
10. ## Anyone who wants to write a little game engine?

Hello guys, It was always my dream to create a little game engine (or rather a graphics engine) for fun. I know it's a huge load of work, but that's the challenge. It would be great, if anyone wants to join me in this quest. Programming language doesn't really matter (except for python and javascript.), I prefer C++. I am currently finishing my bachelors degree and have done graphics stuff in the past.
11. ## Textures, Pixel Alignment And Texture Mistakes. What Am I Doing Wrong?

Babaliaris, the fragment shader u posted looks like the vertex shader u posted :-)
12. ## Textures, Pixel Alignment And Texture Mistakes. What Am I Doing Wrong?

If you mean about the vertex specification, you can check it at the constructor of the Renderer class . I don't think I have any vertex data wrong in there. Also I would like to mention that A LOT of people who run Nvidia run my code and everything was rendering fine. But on my computer (AMD GPU) does this. Someone in an older post told me that "Some OpneGL Implementations are more forgiven that others and 99% when a glitch like this appears it's your fault, not the driver's." As much as I want to believe him, I cant' find what else I might be doing wrong.
13. ## Where can I find a good game development company for a quality 3d platformer project?

That's not the way it works.

I was right as it comes to world space position. It was wrong because of this line: float2 cpos = (pixelCoord + 0.5f) * aspectRatio; First of all pixelCoord is already in [0,1] range so adding 0.5 to it made no sense. After changing it to: float2 cpos = pixelCoord; world position is fine. The shadow map still looks broken though. Do you have any further hints on this? I don't like this self shadowing thing:
15. ## Where can I find a good game development company for a quality 3d platformer project?

I really need an experienced game development company to help me with my project that is getting a bit too long to make. Please tell me which companies were the easiest for you to work with 🙃
16. ## Textures, Pixel Alignment And Texture Mistakes. What Am I Doing Wrong?

How many code, it seems to me somewhere there is a problem in the creation of an object - values are incorrectly transmitted. Well, thank you, I openly say that I do not understand, why put a minus?

18. ## Indie brawler Clan N coming to PS4, Xbox One, Nintendo Switch, Steam and Windows10!

I just signed up and, you know, after seeing this game, I was not disappointed, it is funny!;)
19. ## Indie brawler Clan N coming to PS4, Xbox One, Nintendo Switch, Steam and Windows10!

Hello Everyone, http://www.youtube.com/watch?v=V4BEluerj0c Clan N is a beatemup game which combines the classic arcades gameplay with today's modern brawlers. With an ancient far east theme, you'll get challenged across 7 different levels with many different enemies, mid/end level bosses and casual mini games integrated into main gameplay. Features A fast paced beatemup which combines the classic arcades gameplay with today's modern brawlers. A main story with 7 levels divided into more than 50 sections. Levels contain casual minigames which are tightly integrated into the main story and can be played separately as well. Can be played as local or online coop with up to 4 players. A slick and clean pixel based graphics with accompanying far east inspired music and sfx. ScreenShots More information WebSite : http://www.clanngame.com/ Reveal Trailer : http://www.youtube.com/V4BEluerj0c Steam : https://store.steampowered.com/app/982670/Clan_N/ Let me know any questions you may have and happy gaming!
20. ## Textures, Pixel Alignment And Texture Mistakes. What Am I Doing Wrong?

No, even that would be better then camera->move(false, false, false, true); Because even with intellisense it communicates nothing when skimming the code.
21. ## Weird depth buffer values

Ah, I see... yeah, you're right... I had 0.1 / 40000. I don't know why it was set to that, but yeah... changed it and it worked properly too. Thanks!
22. ## Textures, Pixel Alignment And Texture Mistakes. What Am I Doing Wrong?

LoL. Usually when I use enums I'm doing it old style (a bunch of #define statements, not the c++ enum type) bet you would scream more seeing that 😂
23. ## Textures, Pixel Alignment And Texture Mistakes. What Am I Doing Wrong?

I don't have time to look over that huge code dump, but in your main.cpp, the HandleInput... That camera->move() function made me scream then sob. Please, for the love of all that is programming use an enum! enum class movement_direction: unit8_t { forward, back, left, right }; type deal. I'll try and come back later today to look the rest of your code over and see if I can spot anything.
24. ## Some questions about fluid mechanics

Hi all, I am currently playing around with making a 2D underwater survival game (pet project, not too serious) but I need someone I can sit with for like an hour or so, to help me flesh out some reasonable mechanics for the behavior of liquids and gases in relation to gravity, pressure, etc. (Sorry guys I totally failed science class and have no intention of studying it now). There obviously has to be a balance between what I'm willing to code for and realism and then assistance with understanding some mechanics and how their formulas, etc would work. Some additional info, I am making the game in javascript (web browser) and dont plan on using any physics related engines or libraries. Also my first interests (as a starting point) for development lie in managing water vs oxygen vs immobile material in terms of gravity, weight, flow and pressure, both individually and against each other. The game will naturally use a basic 2D block/grid system similar to what you would see in a game like oxygen not included. If a voice chat not going to be so practical, then here are some of my starting questions: Water has weight and is therefore pulled down by gravity, I know this. I have also heard that water does not compress well, so I probably don't have to worry about deeper water having a higher density due to large amounts of water weight above it. So assuming some constant or formula for gravity and water weight, if you have one tile filled with water, and nothing underneath it, it all falls straight down (not caring much about atmospheric interference). But if you have solid mass underneath, then the water should probably fill tiles to the sides instead. Im guessing a good way of doing this will be to multiply your chosen flow rate by the difference between the fuller tile and the more empty tile or something like that in order to calculate change over time? There should probably also be something else at play here, as the liquid tile falling straight down would be very fast surely vs the 'flowing' into a neighboring tile or am I wrong? Another consideration is how do you handle the concept whereby I believe the water would flow downwards (gravity) first before attempting to flow to neighboring tiles (or am I just being naive here)? Also does gas or high pressure gas have any noticeable effect on any of the 'flow rates'?
25. ## Switch-between-characters mechanic

Thank you both for your answers! Indeed, as Rutin understood it, there is no need to have both cameras active at once, only one of them. (Although that would be another cool option to consider...!) The point is to have not only a main character but also a second one that plays a parallel role in the story --and some of their actions affect the story in different ways. This particular relationship is a mix of game mechanics and story, and it was difficult imagining one without the other, so I wanted to make sure I had some freedom. Anyway, thank you again. That was my first post, hopefully I'll see you again around here. 🙂
26. ## Skeletal animation not working

Caused me to laugh at first, now I it's more closer to tears This is where I parse the matrix and after this I do the above calculate_inverse_bind_transform method. std::string matrix_data = el->FirstChildElement("matrix")->GetText();; std::vector<float> f = split_string(matrix_data); float tmp_data[16]; for(int i = 0; i < f.size(); i++) { tmp_data[i] = f.at(i); } glm::mat4 matrix = glm::make_mat4x4(tmp_data); glm::mat4 matrix_transposed = glm::transpose(matrix); if(is_root) { // correct matrix blender use Z as up-axis we use Y glm::mat4 up_axis_correcion = glm::mat4(1.0f); up_axis_correcion = glm::rotate(up_axis_correcion, glm::radians(-90.0f), glm::vec3(1,0,0)); matrix_transposed = matrix_transposed * up_axis_correcion; } I then send it to the shader like this: glm::mat4 projection_view_matrix = projection * view; shader_use(entities[i].shader_id); shader_setMat4(entities[i].shader_id, "projection_view_matrix", projection_view_matrix); for(int j = 0; j < 16; j++) { std::string name = "joint_transforms[" + std::to_string(j) + "]"; shader_setMat4(entities[i].shader_id, name, entities[i].model.meshes[0].local_transforms[j]); } void shader_setMat4(unsigned int shader_id, const std::string &name, const glm::mat4 &mat) { glUniformMatrix4fv(glGetUniformLocation(shader_id, name.c_str()), 1, GL_FALSE, &mat[0][0]); } I tried to make all matrices the identity matrix and send those to the shader, it then renders correctly, not sure if that proves that it has to be the matrices or that the weights or bones can still be wrong?
27. ## Switch-between-characters mechanic

I got hung up by it for longer than I should have when I first started using multiple cameras, just didn't click right away that I was multiplying the rendering load...
28. ## Switch-between-characters mechanic

I assumed the OP is just swapping from one character to the next, not rendering multiple camera views at once, maybe I misunderstood the post. If the OP is wanting more than one camera view to render out then some form of optimization might be required depending on the target specs, and what is being outputted. There will be no performance issue if you're just changing cameras from one area to another but maintaining a single 'active' camera view. Thanks for pointing that out!

30. ## Exceptionally large file size problem on Windows/VS2017

Yes. There are file searchers that can search by name thru literally all files (over 500k of them for me) on a disk or few/all disks (I have an OS 256 GB SDD and a 1TB HDD) in a couple of milliseconds like that (I never perceived a delay in one I use). I also use http://www.voidtools.com/support/everything/ I didn't list that one since a file searcher doesn't help with finding out what kind, size and amount of files are in the folder as conveniently as WinDirStat or similar does. WinDirStat is old and also doesn't use NTFS MFT but it's fast enough for me (a minute or two at most) and I prefer it over some tool that has an ad or banner asking me to buy/donate. It's development seems dead but it's FOSS so if needed I could compile or extend it myself even (but it's written in C++ with MFC). Reading raw disk is also very easy via WinAPI but you need admin rights and to seek/read by sector size and have right flags (and know NTFS structure from somewhere): https://support.microsoft.com/en-us/help/100027/info-direct-drive-access-under-win32 This C program prints sizes of all NTFS partitions taken from their NTFS headers: https://gist.github.com/FRex/5ee5d6efd4910ad90b24a84a429dfe9b I've no idea if there is a special purpose API for NTFS MFT in WinAPI or COM. There might be. I googled but couldn't find it. If you ever want to play with NTFS structure then make a 1 GB ram disk, format it as NTFS, copy some files onto it and saving that ramdisk to a file. It will let you open it easier in a hex editor or a normal non-admin ran program. I use Imdisk for my ram disk needs: http://www.ltr-data.se/opencode.html/#ImDisk 7zip also supports opening an NTFS image (and few other FS formats and many archive formats): https://www.7-zip.org/ NTFS MFT also keeps names of deleted files (I'm not sure how long) in MFT so if you ever delete your very_evil_plans.txt you're not in the clear just yet (even when it's gone from trash bin). Yes. That and not hiding extensions are two very useful things to programmers and most people. It's silly they are off by default.
31. ## Implicit transitions of read only resources

On the MSDN page about implicit state transitions, GENERIC_READ is not in the table of supported implicit transitions: https://docs.microsoft.com/en-us/windows/desktop/direct3d12/using-resource-barriers-to-synchronize-resource-states-in-direct3d-12#implicit-state-transitions which is a bit confusing. But it mentions that: "All buffer resources as well as textures with the D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS flag set are implicitly promoted from D3D12_RESOURCE_STATE_COMMON to the relevant state on first GPU access, including GENERIC_READ to cover any read scenario. Any resource in the COMMON state can be accessed as through it were in a single state with 1 WRITE flag, or 1 or more READ flags" My take on this is that it is safe to assume that from COMMON state, the resource will be implicitly promoted to first PIXEL_SHADER_RESOURCE then NON_PIXEL_SHADER_RESOURCE in your case because multiple read flags can be combined. In my experience it is safe to rely on this, so for read only textures (eg. assets), vertex buffers, etc. you don't ever need to care about transitioning explicitly. Maybe when you first copy data into them, their state will be left as COPY_DEST, but unless you do that on your main rendering command list (you probably shouldn't), then by the time you bind it to a shader, they are decayed into COMMON already. This way I never saw any problems with it, but maybe a more experienced person can correct me.
32. ## Post-Mortem Of The Dungeon Crawler Challenge

I played it. Have you played it to the finish? Seems each enemy you encounter will deal damage, I noticed there is an ability to use health-potions. But alas I didn't find one before I died. I did stack up gold bars though.
33. ## Need help with gas and liquid, physics for a game

I bet if you posted this as a question in the math and physics forum, mentioned the language/engine, you would end up with all the answers you need in no time. These cats are smart. Plus I think it's a relatively easy effect to fake from my miscellaneous readings here and there.. You can begin to simulate buoyancy by simply adding an upwards force to the object to negate the effect of gravity, if you make the force proportional to the mass or "composition" of the object then you can make it more realistic. It might be helpful to lock or to selective lock the rotation of one or multiple axes if you aren't interested in doing a FULL physics simulation to control the object rotation and etc... But I assume those would be under player control somewhat anyhow. Another method might be to not use gravity at all and do it like a space simulation, only you would dampen the movement to represent the fluid friction and/or add forces to represent current flow. Good Luck! https://www.gamedev.net/forums/forum/7-math-and-physics/
34. ## Splash Damage Releases Game Design Doc, Art Book, Soundtrack

Splash Damage, developers of Dirty Bomb, have released the game design document, art book, and soundtrack for Dirty Bomb. According to their blog post: The Game Design document includes hundreds of pages of designs, sketches, notes, concept art, biro drawings, user stories and more. It can be downloaded here: link The Art Book looks at many of the original concepts for Dirty Bomb; from maps and characters to weapons and vehicles. It can be downloaded here: link The original soundtrack can be downloaded here: link
35. ## Splash Damage Releases Game Design Doc, Art Book, Soundtrack

Splash Damage, developers of Dirty Bomb, have released the game design document, art book, and soundtrack for Dirty Bomb. According to their blog post: The Game Design document includes hundreds of pages of designs, sketches, notes, concept art, biro drawings, user stories and more. It can be downloaded here: link The Art Book looks at many of the original concepts for Dirty Bomb; from maps and characters to weapons and vehicles. It can be downloaded here: link The original soundtrack can be downloaded here: link View full story
36. ## Switch-between-characters mechanic

Keep in mind that using multiple cameras can quickly hinder performance if care isn't taken to make sure only one is rendering at full speed/resolution at a time. This is mostly important if you want to maintain some kind of view of the other character. Of course this is somewhat dependent on hardware and etc,etc,etc.. Sounds like a fun project!
37. ## {Rev-Share} Looking for C# Unity Devs

Hi I'am interested. c# developer
38. ## Need help with gas and liquid, physics for a game

Hi all, I am currently playing around with making a 2D underwater survival game (pet project, not too serious) but I need someone I can sit with for like an hour or so, to help me flesh out some reasonable mechanics for the behavior of liquids and gases in relation to gravity, pressure, etc. (Sorry guys I totally failed science class and have no intention of studying it now). There obviously has to be a balance between what I'm willing to code for and realism and then assistance with understanding some mechanics and how their formulas, etc would work. Again, I'm not trying to recruit anyone here, just looking for someone knowledgeable to have a friendly chat with for a little while.
39. ## DX12 Implicit transitions of read only resources

Hi, I'm looking into how to manage state transitions of read only resources. Lets say I have the following scenario with buffer A: Draw Call #1 - Reads from buffer A in PS. Draw Call #2 - Reads from buffer A in VS. So the state will be: Initial - Common Draw Call #1 - Implicit transition to NON_PIXEL_SHADER_RESOURCE Draw Call #2 - Transition from NON_PIXEL_SHADER_RESOURCE to PIXEL_SHADER_RESOURCE. End of command list - Implicit decay to D3D12_RESOURCE_STATE_COMMON. Is this the optimal way to do it? Or should I do a single transition to NON_PIXEL_SHADER_RESOURCE | PIXEL_SHADER_RESOURCE at the beginning of every frame? Would it be more expensive to simply explicitly transition to GENERIC_READ at the beginning of every frame? This would make a lot easier to manage read only resources... Thanks!
40. ## Radio recordings in public domain

You have to be really careful when it comes to music because 50's/60's songs are "young" enough to still have copyright applied. Even songs that are older could still be under copyright if the estate chooses to extend out the copyright. Dialog could be something completely different. Having said that, sometimes older documentary style films can be copyright free. Sometimes. You really have to do your research. You could also just look up radio sound effects from royalty free libraries. Sites like https://www.soundrangers.com/ or https://www.sounddogs.com/ could help. Something like this *might* work too but you should still do your research first: https://archive.org/search.php?query=radio Hope that helps! Nate
41. ## Switch-between-characters mechanic

It's not hard to do by any means. You would just swap the target mesh which responds to your controls, and swap cameras. Then load in the skill bar, inventory, ect... for the relevant character. The Neverwinter games do this, among others. There shouldn't be any issue with performance from doing so.
42. ## Switch-between-characters mechanic

Hi all, I am designing a small RPG game where you have the possiblity of switching between characters as one of the core mechanics. The thing is, I would like to implement it so that there can be two characters on different rooms on different screens, and whenever you press the switch button, the other screen is displayed and you can manage the other character independently. So, you don't just change the shape of your character and acquire different abilities, you also are in a different area. Eventually, there would be the possiblity for the characters to encounter whenever they both reach the same room, so they should be independent objects. I don't have much experience, as you can tell, so I had to ask. Is implementing this feature viable? Will there be huge performance issues? I am thinking that I could restrict the feature so that the player cannot use it at their will, but only at some specific moments --if there was no alternative. I will be using the Unity engine, but I could try something else if I had to. The thing is, I want to make sure the concept is somehow valid before starting to work on it. Most of the games I have seen allow to switch characters in a 'change shape and abilities' style, so I don't have a good reference. Thank you,
43. ## What's is the best story game you've played?

I love the God of War game and the plot in general. It is so interesting and exciting. I think there are a lot of fans of this game just because of its story. https://goo.gl/b7GTEb
44. ## SAMA

Images & screenshots from "Something Ate My Alien" game by RoKabium Games.
45. ## A Functional Impass - Advise me on how to proceed? (C#)

Although Wurstbrot (guter Name!) is correct that ECS is, in general, an excellent approach to game architecture, I would say in this particular case since it is for a fairly simple text based adventure, full ECS is overkill and I wouldn't bother with the 'S' part and instead treat the behaviours (components) as full objects with the logic as well as the data encapsulated.
46. ## DORU an idea i'm brewing up just need opiniouns

kinda new here how do i edit my post lol
47. ## Is limbo game 3d or 2d

That was a ' great presentation on the rendering of INSIDE' cheers
48. ## Managing pointers upon object destruction in C++

Either create a list that contains obj1 collided with obj2 and use it or store another pointer list for a troll that stores all other collided object so you can eaisly clear upon desturction ~trol() { fir (int i=0; i < listcount; i++) if (object!=0) object->colidedeith = 0; Something like that linked kist are helpful
49. ## DORU an idea i'm brewing up just need opiniouns

If you are going to say the British are invading, that's not racist because that actually happened in history. Same thing if you were thinking about African Americans being enslaved by Caucasians during that time because that also happened. Many AAA games out there are perfectly acceptable with representing the gross reality of history because they were based on true events. Yes, keep the surprise a secret, and you should edit those mentions out, like I'll be editing my mention of it out after this post. You don't have to be super historically accurate. Some resemblance is enough to get people into the mindset that this is happening during so-and-so time period. EDIT: I was going to edit the mention of said surprise out of my first post in this thread, but it seems like I can't without hiding the whole thing... Welp.
50. ## Props for my upcoming game

Thjose look really good, what sort of poly count are they?
51. ## I want to make a game.

gl, bae!!

• 0
• 13
• 0

• ### For Beginners

Public Group  ·  1 member

• ### GameDev Challenges

Open Group  ·  86 members

• ### Unreal Engine Users

Open Group  ·  4 members

• ### Optimization Strategy

Open Group  ·  1 member

• ### Publishing and Monetization

Open Group  ·  1 member

1. 1
2. 2
Rutin
24
3. 3
4. 4
5. 5
A4L
14