Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411423 Posts in 69363 Topics- by 58416 Members - Latest Member: JamesAGreen

April 18, 2024, 11:50:29 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)General thread for quick questions
Pages: 1 ... 60 61 [62] 63 64 ... 69
Print
Author Topic: General thread for quick questions  (Read 134423 times)
ferreiradaselva
Level 3
***



View Profile
« Reply #1220 on: January 10, 2018, 07:13:35 AM »

Hope so, I know MSVS, at least some of the versions, has some issues with C99 conformance, and I know how popular those versions still are.

Thanks :D
Logged

Schrompf
Level 9
****

C++ professional, game dev sparetime


View Profile WWW
« Reply #1221 on: January 10, 2018, 07:28:50 AM »

To my limited knowledge about C, MSVC still has issues with C99. But your code isn't using any, as far as I can tell. So you should be fine.
Logged

Snake World, multiplayer worm eats stuff and grows DevLog
Ordnas
Level 10
*****



View Profile WWW
« Reply #1222 on: January 11, 2018, 01:09:05 AM »

I read that Microsoft do not want to support C99 because they see no strong push from the market, and so any C99 parts are those that get brought from C++.
Logged

Games:

jackyokboy
Level 0
*


View Profile
« Reply #1223 on: January 17, 2018, 09:00:47 PM »

Hello everyone,

I want to create a custom face tracking mask in Unity using ARKit.
I am following the instructions in this link:
https://blogs.unity3d.com/2018/01/16/arkit-remote-now-with-face-tracking/

I got the thing set up and running but I would like to create my own custom avatar mask.

Is there any tutorial or resource that can help me create my own custom mask model and plug it into the face tracking system?

Thank you very much!
Logged
Ordnas
Level 10
*****



View Profile WWW
« Reply #1224 on: January 18, 2018, 12:48:50 AM »

Personally I do not know any step by step tutorial for avatar mask in ARKit Unity. I think it is just a skeletal mesh. You could try to open the avatar mask and check the bone names to attach the mask properly to the face.
Logged

Games:

gimymblert
Level 10
*****


The archivest master, leader of all documents


View Profile
« Reply #1225 on: January 22, 2018, 08:57:40 AM »

Let's say I have a cubic planet, I want to hash position such as I bucket position and move from red points to red points, on the cube surface, instead of the travel from blue points to blue points (aka mathf.Floor(v.x*10)/10), how do I do that (study case, cube centered on origin, 2 in size, face divided into a grid of 10²)

Logged

bateleur
Level 10
*****



View Profile
« Reply #1226 on: January 23, 2018, 08:20:41 AM »

@gimymblert - So you by "hash" and "bucket" you just mean you want to take an arbitrary position and quantise it to the closest red dot?

If so, two steps:

1) Work out which cube face you're on (just by checking which axial component is maximum length).

2) If <u,v> is your position, the output you want is <floor(u+w/2),floor(v+h/2)> where w and h are the (probably equal) width and height of the surface cells in the u/v coordinate system.
Logged

gimymblert
Level 10
*****


The archivest master, leader of all documents


View Profile
« Reply #1227 on: January 24, 2018, 03:39:47 AM »

I did that, it doesn't work, I start asking about something that should this trivial! I'm so confused!

Also I'm centered on origin I had to have siwtch from floor to ceil for the blue version working properly.

Logged

bateleur
Level 10
*****



View Profile
« Reply #1228 on: January 24, 2018, 06:37:01 AM »

Also I'm centered on origin

OK, so you'll need to transform to move the origin to the corner, do the above, then apply the reverse of the original transform.

(Also, I assume you don't really mean it "doesn't work", you mean that your specification was wrong. Facepalm)
Logged

gimymblert
Level 10
*****


The archivest master, leader of all documents


View Profile
« Reply #1229 on: January 24, 2018, 04:44:26 PM »

Yeah I don't mean it doesn't work in the literal sense, but it kinda does not do what I want, and I blank as of why ... it's something I'm supposed to be doing all times, therefore it should work.

But no amount of supposed correction or literal hacks change anything Sad they just don't produce correct result ...
I'm sure teh solution is simple, it's just I got stuck on a local minima. SO asking and trying to discuss the matter might force me to shift the perspective, but it hasn't so far Who, Me?

It should be trivial, isn't it? :cry:
Logged

gimymblert
Level 10
*****


The archivest master, leader of all documents


View Profile
« Reply #1230 on: January 25, 2018, 12:38:15 AM »

Floor(x + size/2) don't work on the 1,-1 range, I was dumb
My initial instinct was floor (x*hash)/hash gave me the blue dot
I switched back to blitz3D because unity's visualization is unwieldly

Edit:
I'm getting better result with
halfTileSize + Floor(x*hash)/hash

Still weird edge cases I can't see shit anymore, I need to find a better visualization.
« Last Edit: January 25, 2018, 01:09:31 AM by gimymblert » Logged

gimymblert
Level 10
*****


The archivest master, leader of all documents


View Profile
« Reply #1231 on: January 27, 2018, 04:53:47 AM »

#@#% the formula above work perfectly, it was just a legacy hack I had forgotten in one of the functions, it was solving a problem I didn't have anymore. So much time wated on nothing i_i
Logged

gimymblert
Level 10
*****


The archivest master, leader of all documents


View Profile
« Reply #1232 on: February 22, 2018, 10:02:42 AM »

Does someone know where I can have a good swf action sript decompiler that is easy to use? I just want to take back the word list I put in this old test I'm trying to redo in javascript:
https://www.dropbox.com/s/vyyxnqheqjohhz8/GameIdeaStory.html?dl=0

https://www.dropbox.com/s/7gaxpyo1lonfwlv/GameIdeaStory.swf?dl=1
Logged

gimymblert
Level 10
*****


The archivest master, leader of all documents


View Profile
« Reply #1233 on: February 25, 2018, 06:49:07 PM »

I'm trying to make a html version of the swf above, but the local HTML don't seem t pick up the .js file, I don't know how to fix that ... Anyidea what I do wrong?

Code:
<html>
<head>
<script type='text/javascript' src="gameIdea.js"></script>
</head>
<body>
<div id="test"><p>hello</p></div>
<p>hello</p>
</body>
</html>

Code:
//GAME DESIGN
//type of game //It's a NumPlayer player GameView GameGenre game
var NumPlayer = ["single","asynchrone","multi","p2p","two","4","8",
"16","24","32","64","massively multi"];
var GameView = ["text","side scroller","top down","first person",
"third person","over the shoulder","split screen",
"isometric","axonometric","alternate reality",
"augmented reality","Virtual reality"];
var GameGenre = ["immersive sim","story","roguelike","beat'm up",
"sport","open world","combat","building","art",
"hop and bop","rpg","shooter","4X","puzzle",
"tactic","racing","arena shooter","simulation",
"management","artillery","dollhouse","adventure",
"social","Wrpg","Jrpg","Crpg"];

//world design //set in WorldSize WorldTone WorldGenre world
var WorldSize = ["tiny","average","big","huge"];
var WorldTone = ["dark","atmospheric","funny","dangerous"];
var WorldGenre = ["dream","prehistoric","futuristic","superheroes",
"noir","steampunk","cyberpunk","fantasy",
"sword and sorcery","science fiction","urban",
"space opera","underground","hardboiled",
"underwater","post apocalyptic","metroidvania"];

//gameplay concept //where the player is a PlayerRole
var PlayerRole = ["wizard","tomboy","sorcerer","sorceress","cosmonaut",
"guy","soldier","bro dude","faery","man","man",
"mascot animal","regular person","game designer",
"effeminate hero"];
//who want to PlayerAction PlayerTarget for PlayerMotivation
var PlayerAction = ["wait","attack","assemble","liberate","recover",
"observe","gather","collect","goto","create","destroy",
"trade","use","take","defend","kill","talk",
"intercept","guard","transport","escort"];
var PlayerTarget = ["monster","npc","message","secret of dangerous place",
"data","magic equipment","scientific technology"];
var PlayerMotivation = ["spirit","conquest","serenity","wealth","protection",
"potential","reputation","ability","knowledge",
"equipment","comfort"];
//without PlayerFailure by PlayerModus
var PlayerFailure = ["dying","getting lost"];
var PlayerModus = ["mentoring new life form","building a team",
"looking for hint","navigating the world",
"killing everything"];

//STORY SETTING
var StoryAttraction = ["fear","desire","apathy?"];//"fear","desire","apathy?"
var StoryCost = ["obtain","lose"];
var StoryValence = ["negatif","positif","neutral"];
var StoryNeed = ["safety","relation","aspiration"];//achievement = aspiration
var StorySpace = ["activity","space","attitude","behavior"];//(>>internal/external + process/state)
var StoryTargets = ["itself","someone","everybody","other"];
var StoryAction = ["spend","ignore","hold","destroy"];

//resolution
//StoryAttraction to StoryCost - StoryValence StoryNeed of StorySpace for StoryTargets
var resolution = RandomWord(StoryAttraction) + " to " +
RandomWord(StoryCost) + " " + RandomWord(StoryValence) +
" " + RandomWord(StoryNeed) + " of "  + RandomWord(StorySpace) +
" for " + RandomWord(StoryTargets);
//attitude
//StoryTargets StoryAction - StoryValence StoryNeed of StorySpace for StoryTargets
var attitude = RandomWord(StoryTargets) + " " +
RandomWord(StoryAction) + " " + RandomWord(StoryValence) +
" " + RandomWord(StoryNeed) + " of "  + RandomWord(StorySpace) +
" for " + RandomWord(StoryTargets);
//action
//StoryAction StoryNeed of StoryTargets
var action = RandomWord(StoryAction) + " " +
RandomWord(StoryNeed) + " of " + RandomWord(StoryTargets);
//event
//StoryTargets StoryAction StoryNeed of StoryTargets
var event = RandomWord(StoryTargets) + " " +
RandomWord(StoryAction) + " " + RandomWord(StoryNeed) +
" of " + RandomWord(StoryTargets);
//balance
//StoryValence StoryNeed of StorySpace for StoryTargets (theme)
//is greater than
//(theme)
var theme1 = RandomWord(StoryValence) + " " +
RandomWord(StoryNeed) + " of " + RandomWord(StorySpace) +
" for " + RandomWord(StoryTargets);
var theme2 = RandomWord(StoryValence) + " " +
RandomWord(StoryNeed) + " of " + RandomWord(StorySpace) +
" for " + RandomWord(StoryTargets);

var balance = theme1 + " is greater than " + theme2;
//--------------------
//process
//constructive/destructive change (state) is/has/will [not] happen-ing to something/resource
//state
//absence/presence/deficit/excess/uncommon_state of something/resource provoke abnormality/problem

//the process/state cause [not] need to person/group

function RandomWord(var word){
return math.random() * word.length;
};

//var elem = document.getElementById("test");
var elem = document.getElementsByTagName("p");

document.write("hello world");
alert("alert");
elem.innerHTML = "goraphi";//balance;

Logged

gimymblert
Level 10
*****


The archivest master, leader of all documents


View Profile
« Reply #1234 on: February 25, 2018, 07:54:57 PM »

Okay solved: I used
function name (var somedata)
instead of
function name (somedata)
Logged

gimymblert
Level 10
*****


The archivest master, leader of all documents


View Profile
« Reply #1235 on: February 26, 2018, 05:47:27 PM »

Is there free hosting solution for very simple webpage? I want to host my simple javascript experiment
Logged

Oats
Level 1
*


High starch content.


View Profile
« Reply #1236 on: March 01, 2018, 04:45:04 AM »

I've used this one, pretty crappy though but hey it's free:
https://www.freewebhostingarea.com

You could also use MAMP to run a easy to setup server on your own computer.
https://www.mamp.info/en/
Logged

eh
cykboy
Level 2
**

ye


View Profile
« Reply #1237 on: March 01, 2018, 12:26:47 PM »

Is there free hosting solution for very simple webpage? I want to host my simple javascript experiment

use github
Logged
gimymblert
Level 10
*****


The archivest master, leader of all documents


View Profile
« Reply #1238 on: March 01, 2018, 12:38:40 PM »

I'll look into that! thanks!
Logged

oahda
Level 10
*****



View Profile
« Reply #1239 on: March 13, 2018, 08:19:42 AM »

Do I have to build Bullet (the physics library) to external libraries using the provided CMake or Premake option, or can I just slap the source into my own project and compile it all together? Would make things a lot easier with my super cross-platform setup. x:
Logged

Pages: 1 ... 60 61 [62] 63 64 ... 69
Print
Jump to:  

Theme orange-lt created by panic