[Q] [XNA]Texturing primitive and changing texture coords with each update - Windows Phone 7 Software Development

Hello, sorry for noob question
I am trying to create water plane (4 vertexes with blending and moving texture)
i am using tutorial from game developedia,
but i don't know how to move texture coordinates with each update
and another question - it is possible to tile texture on only two triangles? (probably not, right? )
thank you!

Use:
VertexPositionColorTexture[6], Msdn: http://msdn.microsoft.com/en-us/lib...work.graphics.vertexpositioncolortexture.aspx
And method: DrawUserPrimitives
http://msdn.microsoft.com/en-us/library/bb196411.aspx

Related

SUGGESTION Android Custom Firmware

Hi everyone.
I was wondering if a developper (AND USER AS WELL) could be interested into making a Custom firmware for android that is made and give support for Anaglyph stereoscopy? You know those Red and Cyan Glasses!
on a PC I use IZ3D to make my Videogame 3d with proper Cyan and Red Glasses and was thinking how much It would be cool to get that on a Samsung Galaxy S phone or Even an Android Tab.
I've downloaded a video of 3d gaming and played id on my phone to see what it look like....AWESOME!!!!
And the desktop could be Anaglyph as well. Imagine an Anaglyph Live wallpaper that look like an endless corridor and use the motion sensor so when you move the phone it change the angle of the background so real that you could almost put you fingers inside loll
and when you slide the notification panel it really look like a panel in front of your endless background.
When changing between windows, the animation could give a 3d slide
Anyway there is a lot of possibility. On this mod it could be cool to shut down the anaglyphic effect with an on/off button as well.

[GAME]Do not get angry, buddy

Hi people.
There is a snowy weather outside,cold,so ideal conditions for starting of something new.
So I decided to develop my collective favourite game named "Do not get angry, buddy",but in nice,modern design with finger-friendly interface. This pictures shows,how actually should appear main interface and some components.
What do you think about?
Please let me know...
And...it will be free of charge.
And...don't throw your PDA against the wall while playing
Rules:
After start the game,you and opponent(s) will have all pieces in the jail. You have 3 attempts to get a "6" to leave the jail,but 3 attempts you have only,if you have all pieces in jail. After you hit "6",you are allowed to turn once again,but maximum 10 turns in one shift. A "6" from a jail will lead selected piece to free start field. After that,your piece is moved a distance related the number in order(turn). If there is already your piece at the destination,you cannot make a move and you should choose another piece. If you haven't any chance to move with all pieces,so pity,continues the opponent in the order. If there is opponent's piece at your destination,you send him back to jail and your piece stands on his previous field. You cannot step into opponent's start field. Your goal is to send all your pieces to home,in the middle of the playfield,but you must move your pieces through whole track clockwise to the home. Once your piece is standing at home,it is in a safe,opponents can't send it to jail anymore,because they can not step into your home. All turns with more "6" presents standalone turn,during which you could move different pieces and the destination is everytime current(not calculated each together). Turns available are displayed at the bottom of the screen and you cannot change the order of them,they goes from the left side and the "X" sign is displayed over used turns. The winner is,who leads all own pieces at home first.
Controls:
After starting up program,the menu is displayed and you should choose your groups to play. After starting the game with PLAY! button,all pieces for selected groups are in the jail and there is displayed big coloured button,which signalizes,which player should make a turn. Also the rounded LED in the middle signalizes this status all the time. Turning the wheel is by simple touch of the wheel(yes,I tried to scroll it physicaly with sliding finger,but it didn't work well).
After you turn the wheel,you get the number,which is then displayed within Available turns area. Immediately software is calculating,which pieces you can move with current number and if any,it displays the numbered smilies. There is also STOP flag displayed over the smiley,which you cannot move. Each smiley represents numbered piece. They are independent,so it doesn't matter,whether you begin with 4 or 1. Just the last thing,you can enter the menu by touching the LED in the middle of the playfield.
The "Debug mode" is actualy not for playing,because instead of the scrolling wheel with random numbers,you have to choose your favorite number,so it is not so funny. You can change this flag also during the game,by enter into the menu,modify it and by pressing the CANCEL button(it stores this value even tough you want to cancel the menu).
ModList:
v1.0
-initial version
v1.1
- added "Debug mode"
- added some animations
- bug fixes
v1.2
- modified dialog window
- all screen resolutions support,but 240x240
- bug fixes
v1.3
- added piece animations
- added explosion animation while send opponent to jail
- removed dialog window
- added full graphic menu
- bug fixes
v1.4
- added "About box" in Menu window
- expanded explosion from 32 to 72 pixels(limit of the playfield physical dimensions,able to increase it even more,but wit graphical bug at the bottom the playfield,that's out of 480pix.boundary at this moment)
- solved multitasking,while return to app.
- bug fixes(that's neverending story...)
v1.5
- added colored wheel arrows,depending on the player,that is on the turn
- solved explosion graphics described above,now is the explosion really big
- added sound effects
- added more game options:
-- automatic screen rotation by player
-- enable/disable animations(speed up the game)
-- enable/disable sounds
-- enable/disable explosion
-- enable/disable player confirmation request
-- game overs with all at home or last on the road
- autosave game on exit
- autoload saved game by hitting Cancel at startup(useful if you want to replace battery during game)
v1.6 (in development)
- support for non-touchscreen devices,whose I really like
- detection for landscape displays and automatic screen rotation,so one can play it on the devices with landscape oriented screens(system screen will turn)
v1.7 (in developer's mind)
- changing system screen rotation behavior,playfield will keep same orientation
(This will be a really big deal(for square displays with possibility to make the orientation to 90/270dgs,all bitmaps should be doubled or I should find a way,how to rotate original),lot of coding,positioning etc. What do you think? It is necessary?)
Well,I will upload newer versions here.
Enjoy.
Cool looking game
I'd play it. Looks neat.
Nice. What is the goal of the game?
http://en.wikipedia.org/wiki/Mensch_ärgere_dich_nicht
We loved this game as a kid. I stopped playing it in the new techy world...would be awesome to have a game like this, and get some of those old memories back! Hope to see a working version soon...
I started it today from a scratch. Still working on design and thinking on layout.
However,something updated...
It will also not have original cube,but cylinder-like wheel of fortune
Main idea is to move the pieces,which are numbered(original aren't),because of small dimensions of them using 4 numbered big smilies. So they supplies in principle buttons which let you choose the current piece on the road for movement.
If some piece(s) are unable to move,the STOP sign will be displayed over current smiley.
Well I am fair(hope),so I will not implement any cheats to bring a "6" for my turn.
I just hope to bring it before christmas,to achieve well stay at cottage with friends and some glasses of drinks.
great idea! I am looking forwart to try this game!
Hi guys,development in progress...
Let's turn the wheel...
That's for today...
TomasNM said:
Hi guys,development in progress...
Let's turn the wheel...
That's for today...
Click to expand...
Click to collapse
That looks good...
Hi TomasNM
Is it for all resolutions?
Thanks for sharing
First of all,it will run on VGA portrait devices(I own TouchPro). After working version,I will focus on WVGA and later maybe also QVGA and WQVGA. That "working version" I mean fully usable game,yet without animations etc.
Ok, I'll wait
thanks for sharing
Thanks a lot!, looking forward to the final release
So here we go.
Working on that.
I have temporarily disabled the scrollwheel,because of some bugs,however you could now try the controls...
Progress...
Nearly playable,just few more conditions to resolve.
is this like Ludo?
oh God, I miss my childhood games!
Yes,it is like Ludo.
Don't worry,I will finish playable version soon...
However,I am looking for some beta testers.
So guys,here is hopefuly first playable version...
TomasNM said:
So guys,here is hopefuly first playable version...
Click to expand...
Click to collapse
Awesome...I can be your beta tester if you want...just pm me..

[HOWTO] WallPaper Cropping guide for A101 and A70

Note: This is a work in progress.
Note: All Image manipulation is done with GIMP.
Note: This guide is mainly for the A101 but can also be applied for the A70.
I was getting sick of not be able to take a good picture and use it as a wallpaper so that it looked good. I know there is an alternative "MultiPicture Live Wallpaper" but that thing is a memory hog.
PART 1
So I came up with this picture it's a PNG of 1200x1024. The different grids are the following sizes.
Blue: 8px
Green: 16px
Red: 32px
White: 64px
When this is set as a wallpaper we can finally see what is happening to the image.
Here are the screenshots for the 5 screens of the Stock Launcher of the Archos 101.
Screen 1
Screen 2
Screen 3
Screen 4
Screen 5
Since the status bar can not be hidden on the Stock Launcher we loose 32px at the top and on the right with the soft buttons we loose 40px. When positioned on the first screen we have a good view of the top left corner (1024x600) of the reference picture.
Now lets get to work with this picture below.
Size: 1680x1050
So what do we need to do. The result must be an image with a size of 1200x1024 for the A101 and 960x800 for the A70 where only the top 600px (A101) 480px (A70) will be visible in landscape mode.
Scaling the image to a height of 600px and keeping the aspect in mind. The result is a picture of 960x600
On the bottom add a 424px black border.
On both sides add a 120px black border.
and the result is
Size: 1200x1024
And the screenshot to prove it works.
This was tested with the Stock Launcher and ADW.Launcher.
PART 2
So this worked out because the original picture has a black background. So here is the solution for other pictures.
I made a multi layer xcf file with GIMP to address the problem. You can download it here for the A101 and here for the A70.
Open WallPaper_cropping.xcf in GIMP.
Select the "Background" layer.
File -> Open as Layer -> select the picture you want to crop.
Scale the layer to 1200px width and keep the aspect correct.
Position the layer so that the visible part looks good.
Turn visibility on/off so that only the layers "Background:, "The Picture", "Black Not Visible Part" are turned on.
Save the image as PNG with option "Merge Visible Layers"
Send to archos and apply as wallpaper with the Crop Wallpaper app and use the "Overall" button.
This is all for today. Next We'll see if we can do something with extending the background instead of cropping it.
Reserved for future use
Reserved for future use 2
reserved for thanks ;-)
many thanks
Worked fine for landscape But when I turn it portrait there is a black bar at the bottom - How do I get it to fill in that black space??
Using ADW Launcher if that has any effect on it...
Would put up a screenshot but the forum won't let me...
martinjh99 said:
Worked fine for landscape But when I turn it portrait there is a black bar at the bottom - How do I get it to fill in that black space??
Click to expand...
Click to collapse
There is no way to do both landscape and portrait at the same time. So you have to choose.
ah ok- Thanks anyway.
Thanks wdl1908. It will be difficult for me to explain because of my poor english. But with your settings and my A70it it didn't (the image was too high). So I have set the top of my image at 183px and the bottom at 644px and now it's perfect. Maybe someone with skills could check those values cause I'm a newbie.
Thank you very much.
nikokroko said:
Thanks wdl1908. It will be difficult for me to explain because of my poor english. But with your settings and my A70it it didn't (the image was too high). So I have set the top of my image at 183px and the bottom at 644px and now it's perfect. Maybe someone with skills could check those values cause I'm a newbie.
Click to expand...
Click to collapse
If you attach your original wallpaper I'll look at it to see what the best method is.
So this is my actual wallpapaper. In landscape I see everything of the middle layer and not the 2 others (normal). And in portrait I don't see the face of the guy on the first layer. But this is not important cause those layers are just there to fill the blanks in portrait mode.
The original picture was found on socwall and was 2500*1324px
nikokroko said:
So this is my actual wallpapaper. In landscape I see everything of the middle layer and not the 2 others (normal). And in portrait I don't see the face of the guy on the first layer. But this is not important cause those layers are just there to fill the blanks in portrait mode.
The original picture was found on socwall and was 2500*1324px
Click to expand...
Click to collapse
Very nice wallpaper. I usually don't bother with the portrait mode as long as the landscape mode is shown correctly. I would just cut out the middle part and use that to fit into the portrait visible part of the template.

Adding colour to a black and white image?

Not posted for a little while but I was hoping someone could help me with suggestions of what the best app / method for converting a black and white image in to colour was. My google search results have just been desktop programme specific or about converting a colour image to black and white. I prefer to sketch in grey scale and my dad was asking a similar question for scanning and processing some of his old photos.
Thanks for any help!
hertsjoatmon said:
Not posted for a little while but I was hoping someone could help me with suggestions of what the best app / method for converting a black and white image in to colour was. My google search results have just been desktop programme specific or about converting a colour image to black and white. I prefer to sketch in grey scale and my dad was asking a similar question for scanning and processing some of his old photos.
Thanks for any help!
Click to expand...
Click to collapse
Are you asking about photographs or comic art/illustrations?
For vintage style photos it's a labor of love.and hand tinting techniques. I only know photoshop and it's tools
You would usullay first get a similar looking color photograph and create a simplified color palette from it. and then start blending colors in. in accordance with the black levels in the b/w.
A Quick trick I would use is to block out regions of similar color and then use a gradient map over that block/mask to put in the gradient shades corresponding to different levels of blacks. After that it is matter of putting in subtle colors on and on.
There are a lot of other techniques, like switching color modes and using channels etc and what not for this and they all vary based on the subject/content basically what all you can get away with.
Now if you are specifically asking for an app for android then I wont know any best app as of now as all apps have some features better than the other and then so.
But my main basic requirements would be masks, layers, blending modes (multiply / color/ and overlay) at the minimum and then some fine blending tools. like a soft/fine scattered smudge brush and custom gradients.
for sketch/line art.
look comic art coloring books or videos on youtube as mostly all follow same basic methods at start and later diversify into what technique suit the artists the most.
Sketch in top layer with multiply blend mode (or which suits your content best and adjust opacity).
In the underlying layers,block in solids, then details followed by highlights and shadows (dodging/burning).
There are other techniques like vector illustrations etc but that is a whole different subject/study in itself.
I doubt you are going to find any program that is going to do this for you on it's own, but there may be programs that provide you with tool get you going.
If you don't hae photoshop,other good candidates on PC would be GNU Gimp and Paint.net especially with their plugins as we well as layer support you should be able to get somewhat decent results. However i would strongly advise using a tablet. If you don't have one on pc, you should be able to find some apps that allow you to use the note 8 as a digitizer/tablet for pc as well.
intelliriffer said:
Are you asking about photographs or comic art/illustrations?
For vintage style photos it's a labor of love.and hand tinting techniques. I only know photoshop and it's tools
You would usullay first get a similar looking color photograph and create a simplified color palette from it. and then start blending colors in. in accordance with the black levels in the b/w.
A Quick trick I would use is to block out regions of similar color and then use a gradient map over that block/mask to put in the gradient shades corresponding to different levels of blacks. After that it is matter of putting in subtle colors on and on.
There are a lot of other techniques, like switching color modes and using channels etc and what not for this and they all vary based on the subject/content basically what all you can get away with.
Now if you are specifically asking for an app for android then I wont know any best app as of now as all apps have some features better than the other and then so.
But my main basic requirements would be masks, layers, blending modes (multiply / color/ and overlay) at the minimum and then some fine blending tools. like a soft/fine scattered smudge brush and custom gradients.
for sketch/line art.
look comic art coloring books or videos on youtube as mostly all follow same basic methods at start and later diversify into what technique suit the artists the most.
Sketch in top layer with multiply blend mode (or which suits your content best and adjust opacity).
In the underlying layers,block in solids, then details followed by highlights and shadows (dodging/burning).
There are other techniques like vector illustrations etc but that is a whole different subject/study in itself.
I doubt you are going to find any program that is going to do this for you on it's own, but there may be programs that provide you with tool get you going.
If you don't hae photoshop,other good candidates on PC would be GNU Gimp and Paint.net especially with their plugins as we well as layer support you should be able to get somewhat decent results. However i would strongly advise using a tablet. If you don't have one on pc, you should be able to find some apps that allow you to use the note 8 as a digitizer/tablet for pc as well.
Click to expand...
Click to collapse
Thanks for the detailed reply. I was asking for both photos (for my father) and drawings (for myself), but you have pretty much confirmed my fears that the only way to proceed with the work flow I had originally intended is to use a PC and that there was no such option on a tablet.
I have settled on CloverPaint for my artwork as it seems to have the most comprehensive set of features and functionality. I've been reading ImagineFX magazine to try and get some tips on working in the digital medium and the method that seemed to suit me the most was to first draw the entire picture in grayscale and then add a colour layer for each section of the photo in order to complete the image. That way, if i wanted to tweak the colours it would be a simple task rather than having to rework that entire part of the image. I cant seem to find the equivelant method in android only.
http://www.cgarena.com/freestuff/tutorials/photoshop/spiderharp/index3.html
This is the type of thing im talking about. May be the option is available and I just havent figured out the correct layer setting?..
If cloverpaint has color blend mode or similar, then it should be relatively easy to follow the workflow in the article.
Color blend mode (of a layer) only affects the Hues and Saturation of the colors in the underlying layer (with the color in itself) totally ignoring any luminousity.
If that is not available then you might have to follow some older workflow that uses screen/ multiply and overlay blend modes and different layer structures.
I'd say play around with the just the blending modes for a day or two that cloverpaint provides to get a hang and feel for them. try with same color on top and bottom layers and then different colors, different opacity, and luminosity etc.

[Q] What are the setting to make inset, cutout text

Hi!
Could somebody share with me the setting that are used to create an inset or cutout text effect?
Examples
Inset : designshack.designshack.netdna-cdn.com/wp-content/uploads/css-textshadows-8.jpg
Cutout : [www].pinoy7.com/psptutorials/7/textcutout/images/img0.jpg
(can't post outside links yet =(( )
Guess is semantics on which term you use. I tried using a blur offset of 1 then -1 for both the x and y with a color that was lighter and tried even darker. Didn't really work for me.
Hope somebody can help! I'm learning and I've learned a lot just trying to recreate things I've seen!
Thanks many times in advance!
Dave

Categories

Resources